6.0.0-rc4Source

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

QAbstractTextDocumentLayoutThe QAbstractTextDocumentLayout class is an abstract base class used to implement custom layouts for QTextDocuments.
QActionThe QAction class describes something that a user can do, which a menu, a tool button and a shortcut share.
QActionEventThe QActionEvent class provides an event that is sent when an action of a widget is added, removed or changed.
QActionGroupThe QActionGroup class groups actions together.
QBackingStoreThe QBackingStore class provides the backing store for a QWindow.
QBrushThe QBrush class defines the fill pattern of shapes drawn by QPainter.
QCloseEventThe QCloseEvent class contains parameters that describe a close event.
QColorThe QColor class provides colors based on RGB values.
QConicalGradientThe QConicalGradient class changes color around a center.
QCursorThe QCursor class provides a mouse cursor with one of the standard shapes.
QEnterEventThe QEnterEvent class contains parameters that describe an enter event.
QExposeEventThe QExposeEvent class contains event parameters for expose events.
QFocusEventThe QFocusEvent class contains event parameters for widget and window focus events.
QFontThe QFont class specifies a font used for drawing text.
QFontMetricsThe QFontMetrics class provides font metrics information.
QGradientThe QGradient class is the base of the gradients that brushes fill with.
QGuiApplicationThe QGuiApplication class manages the GUI application's control flow and main settings.
QHelpEventThe QHelpEvent class asks a widget for the help it has at a position, such as a tool tip.
QHideEventThe QHideEvent class provides an event that is sent when a window is hidden.
QImageThe QImage class provides a hardware-independent image of 32-bit pixels.
QInputEventThe QInputEvent class is the base class for events that describe user input.
QKeyEventThe QKeyEvent class describes a key event.
QKeySequenceThe QKeySequence class encapsulates a key combination used by a shortcut.
QLinearGradientThe QLinearGradient class changes color along a line.
QMouseEventThe QMouseEvent class contains parameters that describe a mouse event.
QMoveEventThe QMoveEvent class contains event parameters for move events.
QOffscreenSurfaceThe QOffscreenSurface class represents an offscreen surface in the underlying platform.
QOpenGLContextThe QOpenGLContext class represents a native OpenGL context, which renders with OpenGL on a QSurface.
QOpenGLFunctionsThe QOpenGLFunctions class provides the OpenGL ES 2.0 API on desktop OpenGL and OpenGL ES alike.
QPaintDeviceThe QPaintDevice class is the base class of objects that QPainter can paint on.
QPaintDeviceWindowThe QPaintDeviceWindow class is the base class for windows that are paint devices.
QPaintEngineThe QPaintEngine class defines how a QPainter draws on a particular kind of paint device.
QPaintEngineStateThe QPaintEngineState class describes the state a QPainter hands to its paint engine.
QPaintEventThe QPaintEvent class contains event parameters for paint events.
QPainterThe QPainter class performs low-level painting on widgets and other paint devices.
QPainterPathThe QPainterPath class is a shape made of lines and curves, for QPainter to fill and stroke.
QPainterPath::ElementThe QPainterPath::Element class is one point of a path.
QPaletteThe QPalette class contains color groups for each widget state.
QPenThe QPen class defines how QPainter draws lines and outlines.
QPixmapThe QPixmap class is an image to paint and to show, such as a splash screen or a picture in a label.
QPolygonThe QPolygon class is a list of points with integer coordinates.
QPolygonFThe QPolygonF class is a list of points with real coordinates.
QRadialGradientThe QRadialGradient class changes color in circles from a focal point.
QRasterWindowThe QRasterWindow class is a convenience class for using QPainter on a QWindow.
QRegionThe QRegion class specifies a clip region for a painter.
QResizeEventThe QResizeEvent class contains event parameters for resize events.
QScreenThe QScreen class is used to query screen properties.
QShowEventThe QShowEvent class provides an event that is sent when a window is shown.
QStyleHintsThe QStyleHints class contains platform specific hints and settings.
QSurfaceThe QSurface class is an abstraction of renderable surfaces.
QSurfaceFormatThe QSurfaceFormat class represents the format of a QSurface.
QTextBlockThe QTextBlock class provides a container for text fragments in a QTextDocument.
QTextBlockFormatThe QTextBlockFormat class provides formatting information for blocks of text in a QTextDocument.
QTextCharFormatThe QTextCharFormat class provides formatting information for characters in a QTextDocument.
QTextDocumentThe QTextDocument class holds formatted text.
QTextFormatThe QTextFormat class provides formatting information for a QTextDocument.
QTextLayoutThe QTextLayout class is used to lay out and render text.
QTextLayout::FormatRangeThe QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout's content.
QTextLineThe QTextLine class represents a line of text inside a QTextLayout.
QTextListFormatThe QTextListFormat class provides formatting information for lists in a QTextDocument.
QTextOptionThe QTextOption class provides a description of general rich text properties.
QTransformThe QTransform class is a 2D transformation of the coordinate system.
QWheelEventThe QWheelEvent class contains parameters that describe a wheel event.
QWindowThe QWindow class represents a window in the underlying windowing system.