Tag Info

Hot answers tagged

27

This can be done by adding the following PPA to your system: ppa:ubuntu-sdk-team/ppa (Click here for instructions on using PPAs.) You can usually do this with the following commands: sudo apt-add-repository ppa:ubuntu-sdk-team/ppa sudo apt-get update The next step is to install the necessary packages for Qt5 / QML 2.0 development. You can do that ...


17

I finally managed to do it, to uninstall, I managed go to the installation directory, there is an executable called MaintenanceTool, we need to run it, in order to uninstall and remove Qt. what to do: open terminal, go to the installed directory, and then run MaintenanceTools by the following command ./MaintenanceTool and it is done.....


9

To get the Qt5.2 examples available in Qt Creator/Ubuntu SDK, you basically need two extra packages, open a Terminal with Ctrl+Alt+t an type: sudo apt-get install qtbase5-examples qtbase5-doc-html Restart Qt Creator to get:


8

Problem solved, the answer is to use QtMultimedia 5.0, which now provides the Audio element. http://qt-project.org/doc/qt-5.0/qtmultimedia/qml-qtmultimedia5-audio.html


7

The error message is normal, although uninformative. In essence you're trying to execute qtchooser with itself, which doesn't work. Run the man qtchooser command on a terminal for how to use qtchooser, or just keep the ubuntu-sdk (and qt5-default) packages installed, in which case you don't need to care about qtchooser existing. Upstream has fixed the ...


6

I found an external repository called ppa:sunab/sigil-git that contains the last version of Sigil, using Qt5. To install it: sudo add-apt-repository ppa:sunab/sigil-git sudo apt-get update sudo apt-get install sigil Edit: it seems sunab repository wasn't updated for Ubuntu 15.04.


6

Library package names in Ubuntu include the major abi version. Some examples are libc6, libkrb5 and libqt4. So the Qt 5.0 libraries will be libqt5-*. Naming them libqt4-* would be wrong as they are not backwards compatible and packages depending on Qt 4.x would suddenly stop working if Ubuntu would do this. Naming the packages libqt5-* (and taking care of ...


6

Qt has been a first-class toolkit on Ubuntu for several cycles, and will likely become one of the most important toolkits for cross-formfactor development on Ubuntu. But no existing languages or toolkits are being deprecated on the Desktop. Yes, Quickly will be less important as a tool for developing Ubuntu SDK apps. The Quickly developers have decided ...


6

There is a qt5-doc package, but it is on a separate repository. To install it, do: sudo add-apt-repository ppa:ubuntu-sdk-team/ppa sudo apt-get update sudo apt-get install qt5-doc Then you must declare it in Qt Assistant: Edit => Preferences => Documentation => Add and then select file /usr/share/qt5/doc/qch/qtdoc.qch Yes, Qt5 integration ...


6

Two things I was missing: After an unsuccessful build, I must remove CMakeCache.txt (or simply clear the build directory); otherwise cmake will report the same error even if the needed package has been installed. The packages which provide the *.cmake configuration files have names of the form qt*5-dev, e.g. for the error in my question, qtcore5-dev.


5

Qt Quick Controls are available since Qt 5.1 and the Qt 5 version in Ubuntu repositories seems to be Qt 5.0.2. Consequently you cannot use Qt Quick Controls with the current version of Qt5 in Ubuntu repositories. If you want to use them, you have got 3 options: Using official Qt Project packages for Linux. You can download them here. Waiting a version of ...


5

I had to install bunch of additional packages: sudo apt-get install qtquick1-5-dev qtlocation5-dev qtsensors5-dev qtdeclarative5-dev Not sure why they were not installed automatically. Perhaps the dependencies are not set right?


4

The solution was to add the following to my CMakeLists.txt set(QT_QMAKE_EXECUTABLE /usr/bin/qmake-qt4) Then it compiled fine


4

In default 12.10 it seems to be provided by libqtwebkit4. But that package is from Qt4, so I suppose you are using qt5-edgers ppa to provide Qt5. There you have two packages that can solve your problem: sudo apt-get install libqt5webkit5-qmlwebkitplugin libqt5webkit5 So if you are using that PPA install those two packages and see if it solves your ...


4

I found the solution myself and I want to explain what I did wrong. I forgot in: main.c #include <QQmlEngine> #include <QQmlComponent> #include "stringhelper.h" to qmlRegisterType<StringHelper>("MyStringHelper", 1, 0, "StringHelper"); stringhelper.h: ...class... .....public slots:... Q_INVOKABLE ...


4

I reused your qml file to start a fresh project in QtCreator. Please find below the files I used to compile and use the application successfully: the project file: test.pro # The .cpp file which was generated for your project. Feel free to hack it. SOURCES += main.cpp # Please do not modify the following two lines. Required for deployment. ...


4

I don't have enough reputation to comment on Sylvain's answer so my answer here is to back it up and expand as per gaoithe's comments. I my case running Qt Creator 3.0.1 based on Qt 5.2.1. (on Ubuntu 14.04) I had qtbase5-examples qtbase5-doc-html already installed, but was still missing network and multimedia examples (and others evidently, but these were ...


4

You need to install qtdeclarative5-dev


3

You need to add two ppa's to install Zeal: sudo add-apt-repository ppa:ubuntu-sdk-team/ppa sudo add-apt-repository ppa:jerzy-kozera/zeal-ppa sudo apt-get update sudo apt-get install zeal This is since zeal depends of Qt5, which is not available in repositories.


3

I have the very same issue trying to install ubuntu-sdk on a new VM today The VM is running Ubuntu 12.04 LTS 64bit Here how I solved the issue: downloaded the packages: qtdeclarative5-ubuntu-ui-extras-browser-plugin qtdeclarative5-ubuntu-ui-extras-browser-plugin-assets installed manually the packages dependencies: sudo apt-get install ...


3

In the location where application is installed (default location: /opt/Qt5.0.0/) is a file named QtCreatorUninstaller. Run this executable in the terminal to uninstall QtCreator.


3

Yeah, the official Ubuntu-documentation for Qt5 is very incomplete. You don't have information about nearly any class. If you want to use the QtCreator build from Ubuntu you have to acquire the docs yourself. I did and uploaded these on my personal Mega-account. Here are the docs. I installed the Qt framework with the installer from qt-project.org, grabbed ...


3

No you have to install qt4 libs for running qt4 programs, qt5 is not 100% backward compatable with qt4


3

Ubuntu developers didn't fork Qt. They just added a custom library for native Ubuntu apps. Digia is the owner of Qt, so only they can include Ubuntu components into default Qt libs, but its probablity is very low because core feature of Qt is cross-platform support.


3

Here's a quick example of how to play an mp3 file using MediaPlayer component from QtMultimedia and the Ubuntu UI toolkit: import QtQuick 2.0 import Ubuntu.Components 0.1 import QtMultimedia 5.0 MainView { width: units.gu(100) height: units.gu(75) Page { title: i18n.tr("Simple Player") MediaPlayer { id: player ...


3

You are importing the library correctly, however I suspect you do not have the library installed in your system. You can check if you have the location library installed by running the command below in the terminal. apt-cache policy qtdeclarative5-qtlocation-plugin If you do not have it installed, you can install it by, sudo apt-get install ...


2

You need qtdeclarative5-qtquick2-plugin installed. If you just install ubuntu-sdk it will install pretty much everything you need.


2

I do not believe there is any way to do this using QML only, without C++. I am a C++ Qt developer, but I don't use QML much, so there may be some way that I am not aware of. My understanding of QML is that it is primarily used for describing a UI for which any non-trivial backend code is implemented in either PyQt or C++. Additionally, QML is meant to ...


2

FWIW, Additional, you need the more up to date qt5 libraries, Found in ppa:ubuntu-sdk-team/ppa sudo add-apt-repository ppa:sunab/sigil-git Otherwise installing Sigil will fail due to older qt5 in the standard repositories.


2

You'll rarely find last version of Sigil in any ppa (0.7.2 there, 0.7.4 the last one). The sunab/sigil-git ppa states it is for testing only; it uses "the latest git snapshot from git master branch of Sigil a WYSIWYG epub editor". You can try the deb (now updated to 0.7.4) shared, with instructions, at mobileforums: ...



Only top voted, non community-wiki answers of a minimum length are eligible