Nt GUI C++ Classes
Windows, events, painting and images.
Using the Module
target_link_libraries(app PRIVATE Nt::Gui)
Nt GUI provides the classes for graphical applications: QGuiApplication, QWindow and its input events, and QPainter with QImage for drawing. It talks to the window system through a platform integration, as Qt does. The platforms are xcb (X11, also through XWayland) and offscreen, a headless platform for tests. Choose one with the -platform option or the QT_QPA_PLATFORM environment variable.
Link with Nt::Gui and include <QGuiApplication>.
Classes
| QAbstractTextDocumentLayout | The QAbstractTextDocumentLayout class is an abstract base class used to implement custom layouts for QTextDocuments. |
| QAction | The QAction class describes something that a user can do, which a menu, a tool button and a shortcut share. |
| QActionEvent | The QActionEvent class provides an event that is sent when an action of a widget is added, removed or changed. |
| QActionGroup | The QActionGroup class groups actions together. |
| QBackingStore | The QBackingStore class provides the backing store for a QWindow. |
| QBrush | The QBrush class defines the fill pattern of shapes drawn by QPainter. |
| QCloseEvent | The QCloseEvent class contains parameters that describe a close event. |
| QColor | The QColor class provides colors based on RGB values. |
| QConicalGradient | The QConicalGradient class changes color around a center. |
| QCursor | The QCursor class provides a mouse cursor with one of the standard shapes. |
| QEnterEvent | The QEnterEvent class contains parameters that describe an enter event. |
| QExposeEvent | The QExposeEvent class contains event parameters for expose events. |
| QFocusEvent | The QFocusEvent class contains event parameters for widget and window focus events. |
| QFont | The QFont class specifies a font used for drawing text. |
| QFontMetrics | The QFontMetrics class provides font metrics information. |
| QGradient | The QGradient class is the base of the gradients that brushes fill with. |
| QGuiApplication | The QGuiApplication class manages the GUI application's control flow and main settings. |
| QHelpEvent | The QHelpEvent class asks a widget for the help it has at a position, such as a tool tip. |
| QHideEvent | The QHideEvent class provides an event that is sent when a window is hidden. |
| QImage | The QImage class provides a hardware-independent image of 32-bit pixels. |
| QInputEvent | The QInputEvent class is the base class for events that describe user input. |
| QKeyEvent | The QKeyEvent class describes a key event. |
| QKeySequence | The QKeySequence class encapsulates a key combination used by a shortcut. |
| QLinearGradient | The QLinearGradient class changes color along a line. |
| QMouseEvent | The QMouseEvent class contains parameters that describe a mouse event. |
| QMoveEvent | The QMoveEvent class contains event parameters for move events. |
| QOffscreenSurface | The QOffscreenSurface class represents an offscreen surface in the underlying platform. |
| QOpenGLContext | The QOpenGLContext class represents a native OpenGL context, which renders with OpenGL on a QSurface. |
| QOpenGLFunctions | The QOpenGLFunctions class provides the OpenGL ES 2.0 API on desktop OpenGL and OpenGL ES alike. |
| QPaintDevice | The QPaintDevice class is the base class of objects that QPainter can paint on. |
| QPaintDeviceWindow | The QPaintDeviceWindow class is the base class for windows that are paint devices. |
| QPaintEngine | The QPaintEngine class defines how a QPainter draws on a particular kind of paint device. |
| QPaintEngineState | The QPaintEngineState class describes the state a QPainter hands to its paint engine. |
| QPaintEvent | The QPaintEvent class contains event parameters for paint events. |
| QPainter | The QPainter class performs low-level painting on widgets and other paint devices. |
| QPainterPath | The QPainterPath class is a shape made of lines and curves, for QPainter to fill and stroke. |
| QPainterPath::Element | The QPainterPath::Element class is one point of a path. |
| QPalette | The QPalette class contains color groups for each widget state. |
| QPen | The QPen class defines how QPainter draws lines and outlines. |
| QPixmap | The QPixmap class is an image to paint and to show, such as a splash screen or a picture in a label. |
| QPolygon | The QPolygon class is a list of points with integer coordinates. |
| QPolygonF | The QPolygonF class is a list of points with real coordinates. |
| QRadialGradient | The QRadialGradient class changes color in circles from a focal point. |
| QRasterWindow | The QRasterWindow class is a convenience class for using QPainter on a QWindow. |
| QRegion | The QRegion class specifies a clip region for a painter. |
| QResizeEvent | The QResizeEvent class contains event parameters for resize events. |
| QScreen | The QScreen class is used to query screen properties. |
| QShowEvent | The QShowEvent class provides an event that is sent when a window is shown. |
| QStyleHints | The QStyleHints class contains platform specific hints and settings. |
| QSurface | The QSurface class is an abstraction of renderable surfaces. |
| QSurfaceFormat | The QSurfaceFormat class represents the format of a QSurface. |
| QTextBlock | The QTextBlock class provides a container for text fragments in a QTextDocument. |
| QTextBlockFormat | The QTextBlockFormat class provides formatting information for blocks of text in a QTextDocument. |
| QTextCharFormat | The QTextCharFormat class provides formatting information for characters in a QTextDocument. |
| QTextDocument | The QTextDocument class holds formatted text. |
| QTextFormat | The QTextFormat class provides formatting information for a QTextDocument. |
| QTextLayout | The QTextLayout class is used to lay out and render text. |
| QTextLayout::FormatRange | The QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout's content. |
| QTextLine | The QTextLine class represents a line of text inside a QTextLayout. |
| QTextListFormat | The QTextListFormat class provides formatting information for lists in a QTextDocument. |
| QTextOption | The QTextOption class provides a description of general rich text properties. |
| QTransform | The QTransform class is a 2D transformation of the coordinate system. |
| QWheelEvent | The QWheelEvent class contains parameters that describe a wheel event. |
| QWindow | The QWindow class represents a window in the underlying windowing system. |