QtGUI Module's Classes

简介: Qt GUI C++ Classes The Qt GUI module provides the basic enablers for graphical applications written with Qt.

Qt GUI C++ Classes

The Qt GUI module provides the basic enablers for graphical applications written with Qt. More...

Reference

Event Classes

These Qt Core classes are used to create and handle events.

For more information see the Event System page.

QAbstractEventDispatcher

Interface to manage Qt's event queue

QActionEvent

Event that is generated when a QAction is added, removed, or changed

QBasicTimer

Timer events for objects

QChildEvent

Contains event parameters for child object events

QCloseEvent

Contains parameters that describe a close event

QContextMenuEvent

Contains parameters that describe a context menu event

QDragEnterEvent

Event which is sent to a widget when a drag and drop action enters it

QDragLeaveEvent

Event that is sent to a widget when a drag and drop action leaves it

QDragMoveEvent

Event which is sent while a drag and drop action is in progress

QDropEvent

Event which is sent when a drag and drop action is completed

QDynamicPropertyChangeEvent

Contains event parameters for dynamic property change events

QEnterEvent

Contains parameters that describe an enter event

QEvent

The base class of all event classes. Event objects contain event parameters

QExposeEvent

Contains event parameters for expose events

QFileOpenEvent

Event that will be sent when there is a request to open a file or a URL

QFocusEvent

Contains event parameters for widget focus events

QGestureEvent

The description of triggered gestures

QHelpEvent

Event that is used to request helpful information about a particular point in a widget

QHideEvent

Event which is sent after a widget is hidden

QHoverEvent

Contains parameters that describe a mouse event

QIconDragEvent

Indicates that a main icon drag has begun

QInputEvent

The base class for events that describe user input

QInputMethodEvent

Parameters for input method events

QKeyEvent

Describes a key event

QMouseEvent

Contains parameters that describe a mouse event

QMoveEvent

Contains event parameters for move events

QNativeGestureEvent

Contains parameters that describe a gesture event

QPaintEvent

Contains event parameters for paint events

QResizeEvent

Contains event parameters for resize events

QScrollEvent

Sent when scrolling

QScrollPrepareEvent

Sent in preparation of scrolling

QShortcut

Used to create keyboard shortcuts

QShortcutEvent

Event which is generated when the user presses a key combination

QShowEvent

Event that is sent when a widget is shown

QStatusTipEvent

Event that is used to show messages in a status bar

QTabletEvent

Contains parameters that describe a Tablet event

QTimer

Repetitive and single-shot timers

QTimerEvent

Contains parameters that describe a timer event

QTouchEvent

Contains parameters that describe a touch event

QWhatsThisClickedEvent

Event that can be used to handle hyperlinks in a "What's This?" text

QWheelEvent

Contains parameters that describe a wheel event

QWindowStateChangeEvent

The window state before a window state change

 

 

Painting Classes

See also this introduction to the Qt coordinate system.

QBitmap

Monochrome (1-bit depth) pixmaps

QBrush

Defines the fill pattern of shapes drawn by QPainter

QColor

Colors based on RGB, HSV or CMYK values

QColormap

Maps device independent QColors to device dependent pixel values

QConicalGradient

Used in combination with QBrush to specify a conical gradient brush

QFont

Specifies a font used for drawing text

QFontMetrics

Font metrics information

QFontMetricsF

Font metrics information

QGenericMatrix

Template class that represents a NxM transformation matrix with N columns and M rows

QGradient

Used in combination with QBrush to specify gradient fills

QIcon

Scalable icons in different modes and states

QIconEngine

Abstract base class for QIcon renderers

QImage

Hardware-independent image representation that allows direct access to the pixel data, and can be used as a paint device

QImageReader

Format independent interface for reading images from files or other devices

QImageWriter

Format independent interface for writing images to files or other devices

QLine

Two-dimensional vector using integer precision

QLineF

Two-dimensional vector using floating point precision

QLinearGradient

Used in combination with QBrush to specify a linear gradient brush

QMargins

Defines the four margins of a rectangle

QMarginsF

Defines the four margins of a rectangle

QPagedPaintDevice

Represents a paintdevice that supports multiple pages

QPaintDevice

The base class of objects that can be painted on with QPainter

QPaintEngine

Abstract definition of how QPainter draws to a given device on a given platform

QPainter

Performs low-level painting on widgets and other paint devices

QPainterPath

Container for painting operations, enabling graphical shapes to be constructed and reused

QPainterPathStroker

Used to generate fillable outlines for a given painter path

QPdfWriter

Class to generate PDFs that can be used as a paint device

QPen

Defines how a QPainter should draw lines and outlines of shapes

QPixmap

Off-screen image representation that can be used as a paint device

QPoint

Defines a point in the plane using integer precision

QPointF

Defines a point in the plane using floating point precision

QPolygon

Vector of points using integer precision

QPolygonF

Vector of points using floating point precision

QRadialGradient

Used in combination with QBrush to specify a radial gradient brush

QRect

Defines a rectangle in the plane using integer precision

QRectF

Defines a rectangle in the plane using floating point precision

QRegion

Specifies a clip region for a painter

QSize

Defines the size of a two-dimensional object using integer point precision

QSizeF

Defines the size of a two-dimensional object using floating point precision

QStylePainter

Convenience class for drawing QStyle elements inside a widget

QSupportedWritingSystems

Used when registering fonts with the internal Qt fontdatabase

QSvgGenerator

Paint device that is used to create SVG drawings

QSvgRenderer

Used to draw the contents of SVG files onto paint devices

QSvgWidget

Widget that is used to display the contents of Scalable Vector Graphics (SVG) files

QTransform

Specifies 2D transformations of a coordinate system

QVector2D

Represents a vector or vertex in 2D space

 

Rendering in 3D

QGenericMatrix

Template class that represents a NxM transformation matrix with N columns and M rows

QMatrix4x4

Represents a 4x4 transformation matrix in 3D space

QOpenGLBuffer

Functions for creating and managing OpenGL buffer objects

QOpenGLDebugLogger

Enables logging of OpenGL debugging messages

QOpenGLDebugMessage

Wraps an OpenGL debug message

QOpenGLFramebufferObject

Encapsulates an OpenGL framebuffer object

QOpenGLFramebufferObjectFormat

Specifies the format of an OpenGL framebuffer object

QOpenGLFunctions

Cross-platform access to the OpenGL ES 2.0 API

QOpenGLPaintDevice

Enables painting to an OpenGL context using QPainter

QOpenGLShader

Allows OpenGL shaders to be compiled

QOpenGLShaderProgram

Allows OpenGL shader programs to be linked and used

QOpenGLTimeMonitor

Wraps a sequence of OpenGL timer query objects

QOpenGLTimerQuery

Wraps an OpenGL timer query object

QOpenGLVertexArrayObject

Wraps an OpenGL Vertex Array Object

QOpenGLVertexArrayObject::Binder

QOpenGLVertexArrayObject::Binder class is a convenience class to help with the binding and releasing of OpenGL Vertex Array Objects

QQuaternion

Represents a quaternion consisting of a vector and scalar

QVector2D

Represents a vector or vertex in 2D space

QVector3D

Represents a vector or vertex in 3D space

QVector4D

Represents a vector or vertex in 4D space

 

目录
相关文章
|
1天前
|
云安全 人工智能 自然语言处理
|
6天前
|
搜索推荐 编译器 Linux
一个可用于企业开发及通用跨平台的Makefile文件
一款适用于企业级开发的通用跨平台Makefile,支持C/C++混合编译、多目标输出(可执行文件、静态/动态库)、Release/Debug版本管理。配置简洁,仅需修改带`MF_CONFIGURE_`前缀的变量,支持脚本化配置与子Makefile管理,具备完善日志、错误提示和跨平台兼容性,附详细文档与示例,便于学习与集成。
314 116
|
8天前
|
数据采集 人工智能 自然语言处理
Meta SAM3开源:让图像分割,听懂你的话
Meta发布并开源SAM 3,首个支持文本或视觉提示的统一图像视频分割模型,可精准分割“红色条纹伞”等开放词汇概念,覆盖400万独特概念,性能达人类水平75%–80%,推动视觉分割新突破。
603 53
Meta SAM3开源:让图像分割,听懂你的话
|
21天前
|
域名解析 人工智能
【实操攻略】手把手教学,免费领取.CN域名
即日起至2025年12月31日,购买万小智AI建站或云·企业官网,每单可免费领1个.CN域名首年!跟我了解领取攻略吧~
|
5天前
|
人工智能 Java API
Java 正式进入 Agentic AI 时代:Spring AI Alibaba 1.1 发布背后的技术演进
Spring AI Alibaba 1.1 正式发布,提供极简方式构建企业级AI智能体。基于ReactAgent核心,支持多智能体协作、上下文工程与生产级管控,助力开发者快速打造可靠、可扩展的智能应用。
|
4天前
|
弹性计算 人工智能 Cloud Native
阿里云无门槛和有门槛优惠券解析:学生券,满减券,补贴券等优惠券领取与使用介绍
为了回馈用户与助力更多用户节省上云成本,阿里云会经常推出各种优惠券相关的活动,包括无门槛优惠券和有门槛优惠券。本文将详细介绍阿里云无门槛优惠券的领取与使用方式,同时也会概述几种常见的有门槛优惠券,帮助用户更好地利用这些优惠,降低云服务的成本。
269 132
|
8天前
|
机器学习/深度学习 人工智能 自然语言处理
AgentEvolver:让智能体系统学会「自我进化」
AgentEvolver 是一个自进化智能体系统,通过自我任务生成、经验导航与反思归因三大机制,推动AI从“被动执行”迈向“主动学习”。它显著提升强化学习效率,在更少参数下实现更强性能,助力智能体持续自我迭代。开源地址:https://github.com/modelscope/AgentEvolver
415 29
|
15天前
|
安全 Java Android开发
深度解析 Android 崩溃捕获原理及从崩溃到归因的闭环实践
崩溃堆栈全是 a.b.c?Native 错误查不到行号?本文详解 Android 崩溃采集全链路原理,教你如何把“天书”变“说明书”。RUM SDK 已支持一键接入。
726 223