Tag Info

Hot answers tagged

23

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 ...


12

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.....


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


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

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 ...


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?


5

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 ...


5

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:


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

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

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.


4

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


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

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 ...


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 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

You need to install qtdeclarative5-dev


2

To use library in the program you build, you must have the "dev" version of library, as well as connect it to your application (already done in examples) You need to install "dev" version by apt-get install libgl1-mesa-dev


2

Yes, but not the version of Qt Creator in the archives. Qt 5.0 is compatible only with Qt Creator 2.6.1+. Thankfully, installing Qt Creator 2.6.1 is relatively easy: Remove the existing version of Qt Creator you have installed: sudo apt-get autoremove qtcreator Download the appropriate installer from this page: 32-bit Linux Installer 64-bit Linux ...


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

As stated in the documentation for ListItem.Base (from which ListItem.Subtitle inherits): icon : variant The location of the icon to show in the list item (optional), or an Item that is shown on the left side inside the list item. The icon will automatically be anchored to the left side of the list item, and if its height is undefined, to the ...


2

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


2

This page from the Qt tutorials gives a good description of how to write a QML plugin in C++. I won't repeat all the details, but the basic idea is that you need to make a new class, inheriting from QQmlExtensionPlugin, to represent the plugin. It must have a registerTypes method, in which qmlRegisterType is called on each class to be exposed to QML. ...



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