Tag Info

Hot answers tagged

16

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


9

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


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

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

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

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


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

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


3

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.


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

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

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

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.


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

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


2

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.


1

Further trial-and-error brought me to a solution. created a .desktop file following the instruction at Ubuntu SDK Alpha Placed the desktop file under /opt/qtquick-01 (the root of the installed app) logged via ssh on the phone as phablet user, not ROOT (that was my main mistake I guess) run the command: qmlscene ...


1

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


1

You just need to call Qt.openUrlExternally(link) in the onLinkActivated signal handler: onLinkActivated: { Qt.openUrlExternally(link) } It will attempt to open the specified target url in an external application, based on the user's desktop preferences.


1

Your package name has a missing 5, its name is libqt5webkit5 not libqtwebkit5: sudo apt-get install libqt5webkit5 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: xaw3dg xfig-libs Use 'apt-get autoremove' to remove them. The ...


1

Install .run files sudo sh [FILENAME].run Or sudo ./[FILENAME].run Install .deb files sudo dpkg -i [FILENAME].deb Or Install Gdebi with sudo apt-get install gdebi Then right click on the file and select open with Gebi package installer. I have posted some guides here and here


1

It seems to me like the easiest way to solve your problem is to add a short-cut to your qlmscene external tool as described in the same tutorial you are following, they suggest to put Ctrl + Shift + P. Now instead of clicking on the play button to preview, after saving your file what you need is to enter the short-cut Ctrl + Shift + P, and you will see your ...


1

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



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