Object-oriented framework for GUI creation
|Original author(s)||Haavard Nord and Eirik Chambe-Eng|
|Initial release||20May ; 25years ago()|
|Stable release|| (10September ; 7days ago()) [±]|
|Operating system||Android, iOS, Linux (embedded, Wayland, X11), macOS, Microsoft Windows, WebAssembly, |
|Type||Widget toolkit and Application framework|
|License||Qt Commercial License|
GPL , 
Qt (pronounced "cute") is a free and open-sourcewidget toolkit for creating graphical user interfaces as well as cross-platformapplications that run on various software and hardware platforms such as Linux, Windows, macOS, Android or embedded systems with little or no change in the underlying codebase while still being a native application with native capabilities and speed.
Qt is currently being developed by The Qt Company, a publicly listed company, and the Qt Project under open-source governance, involving individual developers and organizations working to advance Qt. Qt is available under both commercial licenses and open-sourceGPL , GPL , and LGPL licenses.
Purposes and abilities
Qt is used for developing graphical user interfaces (GUIs) and multi-platform applications that run on all major desktop platforms and most mobile or embedded platforms. Most GUI programs created with Qt have a native-looking interface, in which case Qt is classified as a widget toolkit. Also non-GUI programs can be developed, such as command-line tools and consoles for servers. An example of such a non-GUI program using Qt is the Cutelyst web framework.
Other features include SQL database access, XML parsing, JSON parsing, thread management and network support.
The latest version is Qt , which was released on 26 May 
The current LTS version is Qt LTS. It will be supported for 3 years.
Also Qt is LTS version Actual Version is
The initial release of Qt software was on 20 May
Qt in use
In , the Qt Company estimated a community of about 1 million developers worldwide in over 70 industries.
KDE's mascot Konqi showing his Qt heart
Graphical user-interfaces and desktop environments that utilize Qt/QML as widget toolkit:
- Editor, a commercial hex editor and text editor for Microsoft Windows, Linux and macOS.
- KDE Plasma, a libredesktop environment for various computing devices
- DDE (Deepin Desktop Environment) of Linux Deepin
- UKUI (Ubuntu Kylin User Interface)
- LXQt (Lightweight X11 Desktop Environment)
- Lumina, a desktop environment designed for BSD-based TrueOS
- Lomiri (formerly Unity8), a convergent desktop environment started by Canonical, maintained by Ubports
- Unity 2D, a desktop shell written in Qt and Qml
- Trinity DE, a continuously developed fork based on KDE3
- NX-Desktop, a desktop-shell based on Plasma
- Be-shell, a simple shell based on KDE Frameworks
- Liquidshell, a shell based on QtWidgets
- LiriOS, a workspace shell built with Qt/QML
- SDDM, a display manager that is X11 and Wayland compatible written in QML
- theShell, a desktop shell written in Qt
Embedded and mobile UIs
- Actively developed or maintained
- AsteroidOS, an open source operating system designed for smartwatches
- Avionics, Panasonic's in-flight entertainment system
- Blackberry 10, a touchscreen-based mobile OS by Blackberry Ltd.
- Sailfish OS, a mobile operating system developed by Jolla
- GlacierUX, the successor of MeeGo/Maemo 6/Harmattan, based on Qt5 and Wayland
- Plasma Mobile, a touch-based GUI developed by KDE
- LuneOS, community-driven successor for Palm/HP webOS
- Nemo Mobile, based on Mer
- Ubuntu Touch, a phone UI developed by Ubports, originally by Canonical
- Tesla Model S in-car UI
- webOS, a multitask operating system from LG for smart devices like TVs and smartwatches
- Sky Q, the home entertainment system of Sky plc
- Available, but inactive
- MeeGo handset & tablet UX
- OPIE, a GUI for the Sharp Zaurus
- Qtopia, a system by Nokia for embedded and mobile devices
- Ultrahaptics, haptic interface developer for a wide range of applications
Applications using Qt
Many notable open-source or proprietary cross-platform software are using Qt or QML:
- Ableton Push
- Adobe Photoshop Album
- Adobe Photoshop Elements
- AMD's Radeon Software Crimson Edition driver tool application.
- Autodesk Maya
- Autodesk 3ds Max
- Bitcoin Core, a bitcoin client
- Bitcoin ABC, a bitcoin cash client
- CryEngine V editor
- DaVinci Resolve, a video editor
- Dolphin (emulator), an emulator for the Nintendo Wii and Nintendo GameCube systems.
- Dorico notation software
- Dragonframe stop motion animation software
- EAGLE by CadSoft Computer / Autodesk, an EDA application with schematic capture, PCB layout, auto-router and CAM features
- Electrum, a lightweight bitcoin client
- FreeMat free open source numerical computing environment
- Gambas free open source BASICintegrated development environment
- Google Earth
- Igor Pro, a data analysis software
- Krita graphics editing and digital painting software
- LMMS, a cross-platform music production software
- Mathematica, a mathematical symbolic computation program, sometimes termed a computer algebra system or program, used in many scientific, engineering, mathematical, and computing fields.
- Moonlight Stream, an open-source implementation of Nvidia Shield
- Musescore, an open-source, multiplatform notation software
- OBS, a libre cross-platform screencast software
- Orange data mining suite
- qBittorrent cross-platform free and open-source BitTorrent client
- QGIS geographic information system
- QuiteRSS Feed Reader
- Roblox Studio a game creation tool used on the Roblox platform.
- Scribus desktop publishing software
- Sibelius music composition and notation software
- Source 2 engine tools a 3D video game engine developed by Valve
- Stellarium, a planetarium program
- Subsurface, a software for logging and planning scuba dives initially designed and developed by Linus Torvalds
- Teamviewer, a computer software package for remote control, desktop sharing, online meetings, web conferencing and file transfer between computers
- Telegram, a messaging client available for Windows, Mac and Linux
- VirtualBox OS virtualization software
- VLC media player
- WPS Office
- XaoS, a real-time fractal zoomer
- XnView MP
Organizations using Qt
Qt is utilized by a wide range of companies and organizations such as
Qt software architecture
Example of Qt usage in Linux-based systems
Qt is built on these key concepts:
- Complete abstraction of the GUI
- When first released, Qt used its own paint engine and controls, emulating the look of the different platforms it runs on when it drew its widgets. This made the porting work easier because very few classes in Qt really depended on the target platform; however, this occasionally led to slight discrepancies where that emulation was imperfect. Recent versions of Qt use the native style APIs of the different platforms, on platforms that have a native widget set, to query metrics and draw most controls, and do not suffer from such issues as often. On some platforms (such as MeeGo and KDE) Qt is the native API. Some other portable graphical toolkits have made different design decisions; for example, wxWidgets uses the toolkits of the target platform for its implementations.
- Signals and slots
- A language construct introduced in Qt for communication between objects which makes it easy to implement the observer pattern while avoiding boilerplate code. The concept is that GUI widgets can send signals containing event information which can be received by other controls using special functions known as slots.
- Metaobject compiler
- The metaobject compiler, termed moc, is a tool that is run on the sources of a Qt program. It interprets certain macros from the C++ code as annotations, and uses them to generate added C++ code with meta information about the classes used in the program. This meta information is used by Qt to provide programming features not available natively in C++: signals and slots, introspection and asynchronous function calls.
- Language bindings
Starting with Qt the framework was split into individual modules. With Qt the architecture was modularized even further. Qt is now split into essential and add-on modules.
|Module ||Description |
|Qt Core||The only required Qt module, containing classes used by other modules, including the meta-object system, concurrency and threading, containers, event system, plugins and I/O facilities. |
|Qt GUI||The central GUI module. In Qt 5 this module now depends on OpenGL, but no longer contains any widget classes. |
|Qt Widgets||Contains classes for classic widget based GUI applications and the QSceneGraph classes. Was split off from QtGui in Qt 5. |
|Qt Quick||The module for GUI application written using QML2. |
|Qt Quick Controls||Widget like controls for Qt Quick intended mainly for desktop applications. |
|Qt Quick Layouts||Layouts for arranging items in Qt Quick. |
|Qt Network||Network abstraction layer. Complete with TCP, UDP, HTTP, SSL and since Qt SPDY support. |
|Qt Multimedia||Classes for audio, video, radio and camera functionality. |
|Qt Multimedia Widgets||The widgets from Qt Multimedia. |
|Qt SQL||Contains classes for database integration using SQL. |
|Qt WebEngine||A new set of Qt Widget and QML webview APIs based on Chromium. |
|Qt Test||Classes for unit testing Qt applications and libraries. |
|Module ||Description |
|Active Qt||Classes for applications which use ActiveX. |
|Qt Bluetooth||Classes accessing Bluetooth hardware. |
|Qt D-Bus||Classes for IPC using the D-Bus protocol. |
|Qt NFC||Classes accessing NFC hardware. Only officially supported on BlackBerry hardware so far (or N9 in the MeeGo port). |
|Qt OpenGL||Legacy module containing the OpenGL classes from Qt 4. In Qt 5 the similar functionality in Qt GUI is recommended. |
|Qt Location||Classes for accessing GPS and other location services and for mapping and navigation. Split off from the Qt 4 Mobility module of Qt Location. Supported on Android, BlackBerry, iOS, Linux (using GeoClue), Windows and Sailfish OS. |
|Qt Sensors||Classes for accessing various mobile hardware sensors. Used to be part of Qt Mobile in Qt 4. Supported on Android, BlackBerry, iOS, WinRT, Mer and Linux. |
|Qt Serial Port||Classes for access to hardware and virtual serial ports. Supported on Windows, Linux and macOS. |
|Qt WebChannel||Provides access to Qt objects to HTML/Js over WebSockets. |
|Qt WebKit||Qt's WebKit implementation and API. |
|Qt WebKit Widgets||The widget API for Qt WebKit|
|Qt WebSockets||Provides a WebSocket implementation. |
|Qt XML||Legacy module containing classes for SAX and DOM style XML APIs. Replaced with QXmlStreamReader and QXmlStreamWriter classes in Qt Core. |
|Qt XML Patterns||Support for XPath, XQuery, XSLT and XML Schema validation. |
There are four editions of Qt available: Community, Indie Mobile, Professional and Enterprise. The Community version is under the open source licenses, while the Indie Mobile, Professional and Enterprise versions, which contain additional functionality and libraries, e.g. Enterprise Controls are commercially sold by The Qt Company.
Qt works on many different platforms; the following are officially supported:
|X11 ||Qt for X Window System (Linux);FreeBSD, NetBSD, OpenBSD, and DragonFly BSD have community support. |
|Wayland||Qt for Wayland (e.g. SailfishOS uses that, as it doesn't have X11). Qt applications can switch between graphical backends like X and Wayland at load time with the -platform command line option. This allows a seamless transition of Qt applications from X11 to Wayland. |
|Android||Qt for Android (formerly known as Necessitas).|
|Embedded Linux||Qt for embedded platforms: personal digital assistant, smartphone, etc. Exists as multiple platforms depending on display technology. DirectFB, LinuxFB and EGLFS (EGL Full Screen). |
|Windows||Qt for Microsoft Windows 7,8 and 10|
|Windows RT||Support for WinRT-based Windows 10 Mobile apps and Windows 10 IoT|
|macOS||Qt for Apple macOS; supports applications on Cocoa|
|iOS||Qt for iOS platforms (iPhone, iPad)|
|Other embedded platforms|
|Integrity||Qt for Integrity|
|QNX||Qt for QNX|
|VxWorks||Qt for VxWorks. Only available under a proprietary (commercial) license. Qt |
After Nokia opened the Qt source code to the community on Gitorious various ports appeared. There are also some ports of Qt that may be available, but are not supported anymore. These platforms are listed in List of platforms supported by Qt. See also there for current community support for other lesser known platforms, such as SailfishOS.
Qt is available under the following free software licenses:GPL , GPL , LGPL and LGPL (with Qt special exception). Note that some modules are available only under a GPL license, which means that applications which statically link to these modules need to comply with that license.
In addition, Qt has always been available under a commercial license, like the Qt Commercial License, that allows developing proprietary applications with no restrictions on licensing.
Qt comes with its own set of tools to ease cross-platform development, which can otherwise be cumbersome due to different set of development tools.
Qt Creator is a cross-platform IDE for C++ and QML. Qt Designer's GUI layout/design functionality is integrated into the IDE, although Qt Designer can still be started as a standalone tool.
In addition to Qt Creator, Qt provides qmake, a cross-platform build script generation tool that automates the generation of Makefiles for development projects across different platforms. There are other tools available in Qt, including the Qt Designer interface builder and the Qt Assistant help browser (which are both embedded in Qt Creator), the Qt Linguist translation tool, uic (user interface compiler), and moc (Meta-Object Compiler).
History of Qt
In the summer of , Haavard Nord and Eirik Chambe-Eng (the original developers of Qt and the CEO and President, respectively, of Trolltech) were working together on a database application for ultrasound images written in C++ and running on Mac OS, Unix, and Microsoft Windows. They began development of "Qt" in , three years before the company was incorporated as Quasar Technologies, then changed the name to Troll Tech and then to Trolltech.
The toolkit was called Qt because the letter Q looked appealing in Haavard's Emacs typeface, and "t" was inspired by Xt, the X toolkit.
The first two versions of Qt had only two flavors: Qt/X11 for Unix and Qt/Windows for Windows.
On 20 May Troll Tech publicly released Qt for X11/Linux with the source code under the Qt Free Edition License. This license was viewed as not compliant with the free software definition by Free Software Foundation because, while the source was available, it did not allow the redistribution of modified versions. Trolltech used this license until version Controversy erupted around when it became clear that the K Desktop Environment was going to become one of the leading desktop environments for Linux. As it was based on Qt, many people in the free software movement worried that an essential piece of one of their major operating systems would be proprietary.
The Windows platform was available only under a proprietary license, which meant free/open source applications written in Qt for X11 could not be ported to Windows without purchasing the proprietary edition.
Becoming free software–friendly
With the release of version of the toolkit, the license was changed to the Q Public License (QPL), a free software license, but one regarded by the Free Software Foundation as incompatible with the GPL. Compromises were sought between KDE and Trolltech whereby Qt would not be able to fall under a more restrictive license than the QPL, even if Trolltech was bought out or went bankrupt. This led to the creation of the KDE Free Qt foundation, which guarantees that Qt would fall under a BSD-style license should no free/open source version of Qt be released during 12 months.
In , Qt/X11 was released under the GPL v2, ending all controversy regarding GPL compatibility.
At the end of , Trolltech released Qt , which added support for Mac OS X (now known as macOS). The Mac OS X support was available only in the proprietary license until June , when Trolltech released Qt with Mac OS X support available under the GPL.
In , members of the KDE on Cygwin project began porting the GPL licensed Qt/X11 code base to Windows. This was in response to Trolltech's refusal to license Qt/Windows under the GPL on the grounds that Windows was not a free/open source software platform. The project achieved reasonable success although it never reached production quality.
This was resolved when Trolltech released Qt also for Windows under the GPL in June  Qt4 supported the same set of platforms in the free software/open source editions as in the proprietary edition, so it is possible, with Qt and later releases, to create GPL-licensed free/open source applications using Qt on all supported platforms. The GPL v3 with special exception was later added as an added licensing option. The GPL exception allows the final application to be licensed under various GPL-incompatible free software/open source licenses such as the Mozilla Public License
Acquisition by Nokia
Nokia acquired Trolltech ASA on 17 June and changed the name first to Qt Software, then to Qt Development Frameworks.
Nokia focused on turning Qt into the main development platform for its devices, including a port to the SymbianS60 platform. Version of the Nokia Qt SDK was released on 23 June  The source code was made available over Gitorious, a community oriented git source code repository, with a goal of creating a broader community using and improving Qt.
On 14 January , Qt version added another option, the LGPL, to make Qt more attractive for both non-GPL open source projects and closed applications.
In February , Nokia announced its decision to drop Symbian technologies and base their future smartphones on the Windows Phone platform instead (and since then support for that platform has also been dropped). One month later, Nokia announced the sale of Qt's commercial licensing and professional services to Digia, with the immediate goal of taking Qt support to Android, iOS and Windows 8 platforms, and to continue focusing on desktop and embedded development, although Nokia was to remain the main development force behind the framework at that time.
Merging and demerging with Digia
In March , Nokia sold the commercial licensing part of Qt to Digia creating Qt Commercial. In August , Digia announced that it would acquire Qt from Nokia. The Qt team at Digia started their work in September  They released Qt within a month and newer versions every 6 months with new features and additional supported platforms.
In September , Digia transferred the Qt business and copyrights to their wholly owned subsidiary, The Qt Company, which owns 25 brands related to Qt. In May , Digia and Qt demerged completely into two independent companies.
The Qt Project and open governance
Framework development of Qt 5 moved to open governance at cipsas.com, which made it possible for developers outside Digia to submit patches for review.
Distribution of non-Digia Qt contributors (, Week 18)
Aside from The Qt Company, many organizations and individuals using Qt as their development platform participate in the open development of Qt via the Qt Project.
One such Qt contributor is Klarälvdalens Datakonsult AB, a Swedish Qt consulting company. KDAB is involved in many areas, including maintenance of several components.
Together with RIM/BlackBerry, KDAB is maintaining the QNX and BlackBerry 10 ports of Qt.
Another participator is Intel, contributing for example Wayland support.AudioCodes maintains IBM ClearCase support in Qt Creator.
As a heavy user of Qt, the KDE project submits many patches and features from its developer library KDE Frameworks back to Qt.
Qt Wiki provides a comprehensive list of English books about Qt. This is a list of notable books:
- Bocklage-Ryannel, Juergen; Thelin, Johan (12 May ). "Qt 5 Cadaques" (1st ed.).
- Blanchette, Jasmin; Summerfield, Mark (14 February ). C++ GUI Programming with Qt 4 (2nd ed.). Prentice Hall. ISBN.
- Summerfield, Mark (23 August ). Advanced Qt Programming: Creating Great Software with C++ and Qt 4 (1st ed.). Addison-Wesley. ISBN.
- Fitzek, Frank H. P.; Mikkonen, Tommi; Torp, Tony (17 May ). Qt for Symbian (1st ed.). Wiley. ISBN. Archived from the original on 19 December
- Summerfield, Mark (28 October ). Rapid GUI Programming with Python and Qt (1st ed.). Prentice Hall. ISBN.
- Molkentin, Daniel (19 July ). The Book of Qt 4: The Art of Building Qt Applications (1st ed.). No Starch Press. ISBN.
- Thelin, Johan (3 August ). Foundations of Qt Development (1st ed.). Apress. ISBN. Archived from the original on 20 January Retrieved 18 June
- Dalheimer, Matthias (January ). Programming with Qt (2nd ed.). O'Reilly Media. ISBN.
- Ezust, Alan; Ezust, Paul (10 September ). An Introduction to Design Patterns in C++ with Qt 4 (2nd ed.). Prentice Hall. ISBN.