Qt

From Gentoo Wiki
Jump to:navigation Jump to:search
This article is a stub. Please help out by expanding it - how to get started.

Qt (pronounced as /ˈkjuːt/ "cute") is a cross-platform application framework that is widely used for developing application software with a graphical user interface (GUI) (in which cases Qt is classified as a widget toolkit), and also used for developing non-GUI programs such as command-line tools and consoles for servers. [1]

In Gentoo, the ebuilds for Qt and related packages are maintained by a dedicated team. This team also maintains the official qt overlay. They are very open to user contributions and volunteers who want to become new developers.

Installing the Qt libraries

Most users will not need to install the Qt libraries intentionally, but can just let them be pulled in as dependencies of the applications they want to use. For those who want the complete set (e.g. for software development purposes), there are sets in the overlay for Qt5.

Qt-based desktop environments

There are currently two Qt-based desktop environments available in Gentoo. The most well-known and best developed one is KDE Plasma. There is also a younger and more "light-weight" DE: LXQt (a merge of Razor-Qt and LXDE). These can be complemented with KDE Applications and packages from the Qt Desktop applications list.

Compiling programs that use qmake and need Qt5

Programs that need Qt5 will need its version of qmake. It is located in /usr/lib/qt5/bin and needs to be executed with its full path (i.e., /usr/lib/qt5/bin/qmake). After it's run, compilation will just work.

Alternatively, one can use dev-qt/qtchooser functionality in the development environment. Start with:

user $qtchooser --help

Theming

For dark theme emerge x11-themes/adwaita-qt (https://github.com/FedoraQt/adwaita-qt) and start QT app with -style adwaita-dark, for example for Wireshark:

user $wireshark -style adwaita-dark

For persistence: set env

user $export QT_STYLE_OVERRIDE=adwaita-dark

Frequently asked questions

Please see the Qt/FAQ page.

External resources

References