Hot answers tagged

81

List of all Qt5 developement packages, available on Ubuntu. Qt module dev package lib package ------------------------------------------------------------------------- bluetooth qtconnectivity5-dev libqt5bluetooth5 concurrent qtbase5-dev libqt5concurrent5 ...


70

You need to install qtdeclarative5-dev


59

I just stumbled upon this question while trying to compile KeePassX 2.0. What helped me was to use apt-file to search for the missing packages: For example running this: apt-file search Qt5CoreConfig.cmake Returned the following packages: qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake qtbase5-gles-dev: /usr/lib/x86_64-linux-gnu/...


56

GTK, GTK+, and Qt are GUI toolkits. These are libraries that developers use to design graphical interfaces, all running on top of the X Server. These are things that you need to install as dependencies. They're the Linux "equivalent" to Windows' GDI/GDI+. When an application uses any of these, it will always have a general "look and feel". GNOME and KDE are ...


42

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


41

The answer to the title is: sudo apt-get install qtbase5-dev For your specific problem, the answers above are correct, though.


34

Solved the problem using this solution: I have fixed this issue doing the following: Installing the libs: apt-get install libxi-dev libxmu-dev (Re-)moving the Qt libs inside the Genymotion installation directory: mkdir QtLibs && mv *Qt*.so* QtLibs This last command will make Genymotion use the system's Qt libs.


31

I had this error message when trying to run "Stellarium". With strace I found that the missing file was libxcb-xinerama.so.0. I had to reinstall libxcb-xinerama0 to make it work: sudo apt-get install --reinstall libxcb-xinerama0


29

To any future readers who come across this - before you start (dangerously) messing around with symlinks to shared libraries, I strongly suggest that you run export QT_DEBUG_PLUGINS=1 and then run your failing executable again in the Terminal. Read the actual error message thrown by QT, since none of the above solutions addressed the cause of this error in ...


28

Replace Default Qt version paths in: /usr/lib/x86_64-linux-gnu/qtchooser/default.conf or in newer releases /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf: /opt/Qt5/bin /opt/Qt5/lib Check: qtchooser -print-env Reference: man qtchooser


25

You can find the answer on the mailing list and on Mark Shuttleworth's blog. This blog post probably answers it best: As part of our planning for Natty+1, we’ll need to find some space on the CD for Qt libraries, and we will evaluate applications developed with Qt for inclusion on the CD and default install of Ubuntu. Ease of use, and effective integration, ...


24

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.


23

You have to make the file executable and then simply execute it. Type the following commands in the terminal: chmod u+x qt.run ./qt.run


23

GTK+ is the "GIMP Toolkit" (http://en.wikipedia.org/wiki/GTK+) ; this refers to the widgets - the bits that make up GUI applications, like buttons, menus, drop lists, etc - and the underlying bits you can't see, like libraries for storing configuration. Unity is a desktop environment - based on Gnome. GNOME is a desktop environment that uses GTK+ as its GUI ...


20

I am not a lawyer and this is not legal advice. This post is about what options you have, so it's a research tool, intended to be used alongside other research tools. Even in combination with other research tools, this is no substitute for consulting an attorney about any legal matter where you need a proper answer. One of the license options for Qt (not ...


20

On Ubuntu 17.10 Qt4 apps do inherit the global GTK theme, while Qt5 don't. Since libqt5libqgtk2 isn't available in the official Ubuntu repositories anymore, we have to use another workaround: Install qt5-style-plugins from the Ubuntu repositories with sudo apt install qt5-style-plugins. Then add export QT_QPA_PLATFORMTHEME=gtk2 to ~/.profile by echo "...


19

Regarding to for Qt doc: The Qt installers for Linux assume that a C++ compiler, debugger, make, and other development tools are provided by the host operating system. In addition, building graphical Qt applications requires OpenGL libraries and headers installed. Most Linux distributions do not install all of these by default, but setting up a development ...


18

Just desing your interface in Qt-Designer and convert it to python file executing pyuic4. Eg: pyuic4 editorFrame.ui -o editorFrame.py then you can import it from your main class, in this case i'm using a QMainWindow: import sys from PyQt4 import QtGui from editorFrame import Ui_MainWindow class Editor(QtGui.QMainWindow): def __init__(self): ...


17

Ah, as @steeldriver points out, headers and libraries are different things, and doing the following fixed the issue: sudo apt-get install mesa-common-dev This installs the required headers.


15

Go to Tools-> Options-> Environment In the Tab General under **System** Group there is a Terminal Option. The default value is set to/usr/bin/xterm -e. Replace it with /usr/bin/xterm -e sudo or /usr/bin/gnome-terminal -x sudo. Press Apply and OK Buttons. Under Mode Selector click on Projects, select Run Option. Under Run Group Box select Run in ...


15

GTK+ does not support resolution independence, Modern mobile devices have ultra high pixel densities. If you run a GTK+ application on a mobile screen all the user interface elements would be so small as to be unusable. This has been an open bug on GTK+ since 2008 till it was closed in 2014 with "we have hi-dpi scale support now - it is not quite the same ...


14

On Ubuntu versions after 10.10 you'll run into this in more related applications, such as QtCreator. It is a security feature of Ubuntu that prevent the debugger to attach to processes not owned by him. This is filed as a bug #3509 against QtCreator. To work around this issue, do this: temporary solution (won't survive a reboot): echo 0 | sudo tee /proc/...


14

Yes, Qt-Creator is a C++ IDE, with little support for other languages but since version 2.8.0 a quite basic python support has been added. That said you can use Qt-Designer (the form building tool), Qt-Translator (the translate tool), etc... easily with python. There are two Qt-Python bindings right now, the GPL/Commercial dual licensed PyQt, and the LGPL ...


14

Ubuntu SDK team PPA (ppa:ubuntu-sdk-team/ppa) provides only Qt 5.0 for Ubuntu 12.04. If you need features from newer Qt versions you can use the new PPAs by Stephan Binner for Precise and Trusty. He created PPAs for all Qt version starting from 4.8. In order to not mess with Qt system packages, the packages from this PPA are installed in /opt so you'll ...


14

Microsoft appears not to own the business assets (such as copyrights) associated with Qt, because Nokia sold them (i.e., "sold Qt") to Digia before its merger with Microsoft. See also the Wikipedia articles on Qt and Digia, and the references therein. Therefore, the takeover should have no impact at all on the Ubuntu SDK. Furthermore, even if Microsoft ...


13

All the tools you need are included in Ubuntu repositories. You must install the package qtcreator, which has an integrated QtDesigner, and the package pyqt5-dev-tools, which provides pyuic5, a utility that generates Python code from .ui files. sudo apt-get install qtcreator pyqt5-dev-tools


13

A second option is to add Qt using a PPA. The example below installs Qt 5.11.1. There are PPA's for other versions if required. Add the PPA sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial sudo apt update Install Qt sudo apt install qt511-meta-full Configure the System There are a couple of choices here depending on whether you want to ...


12

Apparently a drop needs to be generated explicitly by calling the drop() method on the Drag object Try adding this line inside of the MouseArea, just above drag.target: parent onReleased: parent.Drag.drop()


12

Ambiance GTK is the default theme and Ubuntu Mono (dark) is the default iconset (Ubuntu tweak tool can be used to change it if you want to match Ubuntu with your QT)


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