
Applications that prefer more low-level APIs to text and font handling, classes like QRawFont and QGlyphRun can be used. Typography in Qt is done with QTextDocument which uses the QPainter API in combination with Qt's font classes, primarily QFont. For more information, see Reading and Writing Image Files Users can add support for additional formats via the QImageIOPlugin class. By default, Qt supports the most common image formats including JPEG and PNG among others. Qt can load and save images using the QImage and QPixmap classes. For more information, see Paint System and Raster Window Example. QPainter supports drawing lines, polygons, vector paths, images and text. The Qt GUI module contains classes for 2D graphics, imaging, fonts and advanced typography.Ī QWindow created with the surface type QSurface::RasterSurface can be used in combination with QBackingStore and QPainter, Qt's highly optimized 2D vector graphics API. It provides a number of virtual functions to handle events ( QEvent) from the windowing system, such as touch-input, exposure, focus, key strokes and geometry changes.

The QWindow class represents a window in the underlying windowing system. It also handles the application's initialization and finalization.

QGuiApplication contains the main event loop, where all events from the window system and other sources are processed and dispatched. A Qt application that wants to show content on screen, will need to make use of these. The most important classes in the Qt GUI module are QGuiApplication and QWindow.
