Qt (software)

Qt ( pronounced "cute" ) is a cross-platform application development framework for creating graphical user interfaces as well as cross-platform applications that run on various software and hardware platforms such as Linux, Windows, macOS…

Uses your system voice; voice and rate in settings.

Snapshot

≈ 4 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

Qt ( pronounced "cute" ) is a cross-platform application development framework for creating graphical user interfaces as well as cross-platform applications 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 Qt Group, 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-source GPL 2.0, GPL 3.0, and LGPL 3.0 licenses.

Embedded and mobile UIs

Actively developed or maintained AsteroidOS, an open source operating system designed for smartwatches Avionics, Panasonic's in-flight entertainment system Sailfish OS, a mobile operating system developed by Jolla Plasma Mobile, a touch-based GUI developed by KDE LuneOS, community-driven successor for Palm/HP webOS Nemo Mobile, based on Mer Lomiri, formerly known as Unity8, 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 and tablet UX Qtopia, a system by Nokia for embedded and mobile devices

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

Signals and slots are 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. Qt moc does not recognise modules in its preprocessor currently.

Language bindings

Qt can be used in several programming languages other than C++, such as Python, JavaScript, C# and Rust via language bindings; many languages have bindings for Qt 5 and bindings for Qt 4. In 2025 Qt Group announced a new "bridging technology" that aimed to re-think the way of interacting with new languages, listing that a proof of concept was being worked on for integrating C#, Rust, Swift, Java/Kotlin, and Python.

Text derived from https://en.wikipedia.org/w/index.php?oldid=1378006517 under CC BY-SA 4.0; modifications have been made.

Sources cited in this revision

35 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.