Qt GUI C++ 类

Qt GUI 模块为采用 Qt 编写图形应用程序提供基本的使能器。 更多...

名称空间

QColorConstants

包含 QColor 预定义常量

QAbstractFileIconProvider

用于 QFileSystemModel 类的文件图标

QAbstractTextDocumentLayout

用于实现 QTextDocuments 自定义布局的抽象基类

QAbstractTextDocumentLayout::PaintContext

QAbstractTextDocumentLayout::PaintContext 类是定义使用参数的方便类,当描绘文档布局时

QAbstractTextDocumentLayout::Selection

QAbstractTextDocumentLayout::Selection 类是定义选定参数的方便类

QAccessible

与可访问性相关的枚举和静态函数

QAccessible::State

QAccessibleActionInterface

Implements support for invocable actions in the interface

QAccessibleEditableTextInterface

实现对具有可编辑文本的对象的支持

QAccessibleEvent

用于可访问性通知的基类

QAccessibleInterface

定义暴露有关可访问对象的信息的接口

QAccessibleObject

为 QObjects 实现 QAccessibleInterface 部分

QAccessiblePlugin

为用户界面元素提供可访问性信息的插件的抽象基类

QAccessibleSelectionInterface

Implements support for selection handling

QAccessibleStateChangeEvent

通知可访问性框架对象的状态已改变

QAccessibleTableCellInterface

实现对 IAccessibleTable2 单元格接口的支持

QAccessibleTableInterface

Implements support for the IAccessibleTable2 interface

QAccessibleTableModelChangeEvent

表示表格、列表或树中添加或移除单元格的变化。若改变影响多行,firstColumn 和 lastColumn 将返回 -1。同样,对于列,行函数可能返回 -1

QAccessibleTextCursorEvent

光标移动的通知

QAccessibleTextInsertEvent

正在插入文本的通知

QAccessibleTextInterface

实现对文本处理的支持

QAccessibleTextRemoveEvent

正被删除文本的通知

QAccessibleTextSelectionEvent

对象文本选定改变的信号

QAccessibleTextUpdateEvent

有关文本改变的通知。这用于支持可编辑文本 (譬如:行编辑) 的可访问。例如,此事件发生,当选中文本的一部分被粘贴新文本或在编辑器覆盖模式下被替换时。

QAccessibleValueChangeEvent

描述可访问对象的值改变

QAccessibleValueInterface

实现对操纵值对象的支持

QAction

可以被添加到不同用户界面组件的用户命令的抽象

QActionEvent

当添加、移除或改变 QAction 时生成的事件

QActionGroup

把动作分组在一起

QBackingStore

用于 QWindow 的绘制区域

QBitmap

单色 (1 位深度) 像素图

QBrush

定义 QPainter 绘制形状的填充图案

QClipboard

访问窗口系统剪贴板

QCloseEvent

包含关闭事件的描述参数

QColor

基于 RGB、HSV 或 CMYK 值的颜色

QColorSpace

色彩空间的抽象

QColorTransform

在色彩空间之间变换

QConicalGradient

用于组合 QBrush 以指定锥形渐变笔刷

QContextMenuEvent

包含上下文菜单事件的描述参数

QCursor

具有任意形状的鼠标光标

QDesktopServices

用于访问常见桌面服务的方法

QDoubleValidator

浮点数的范围校验

QDrag

支持基于 MIME 的拖放数据传输

QDragEnterEvent

被发送给 Widget 的事件当拖放动作进入时

QDragLeaveEvent

被发送给 Widget 的事件当拖放动作离开时

QDragMoveEvent

被发送的事件当拖放动作正在进行中时

QDropEvent

被发送的事件当拖放操作完成时

QEnterEvent

包含进入事件的描述参数

QEventPoint

QPointerEvent 点的有关信息

QExposeEvent

包含用于暴露事件的事件参数

QFileOpenEvent

当有打开文件或 URL 的请求时会发送的事件

QFileSystemModel

用于本地文件系统的数据模型

QFocusEvent

包含 Widget 聚焦事件的事件参数

QFont

指定用于绘制文本的字体查询

QFontDatabase

底层窗口系统中可用字体的有关信息

QFontInfo

有关字体的一般信息

QFontMetrics

字体规格信息

QFontMetricsF

字体规格信息

QGenericMatrix

表示具有 N 列和 M 行的 NxM 变换矩阵的模板类

QGenericPlugin

用于插件的抽象基类

QGenericPluginFactory

创建插件驱动程序

QGlyphRun

直接访问字体中的内部字形

QGradient

用于组合 QBrush 以指定渐变填充

QGuiApplication

管理 GUI 应用程序的控制流和主要设置

QHelpEvent

用于在 Widget 中有关特定点请求有帮助信息的事件

QHideEvent

在 Widget 被隐藏后发送的事件

QHoverEvent

包含鼠标事件的描述参数

QIcon

在不同模式和状态下的可伸缩图标

QIconDragEvent

指示已开始拖曳主图标

QIconEngine

用于 QIcon 渲染器的抽象基类

QIconEngine::ScaledPixmapArgument

QIconEnginePlugin

用于自定义 QIconEngine 插件的抽象基

QImage

独立于硬件的图像表示 (允许直接访问像素数据,且可以被用作描绘设备)

QImageIOHandler

定义用于 Qt 中所有图像格式的常见图像 I/O 接口

QImageIOPlugin

定义用于编写图像格式插件的接口

QImageReader

用于从文件 (或其它设备) 读取图像的格式独立接口

QImageWriter

用于将图像写入文件 (或其它设备) 的格式独立接口

QInputDevice

描述源自 QInputEvent 的设备

QInputEvent

描述用户输入事件的基类

QInputMethod

访问活动文本输入法

QInputMethodEvent

用于输入法事件的参数

QInputMethodEvent::Attribute

QInputMethodEvent::Attribute 类存储输入法属性

QInputMethodQueryEvent

通过输入上下文发送给输入对象的事件

QIntValidator

确保字符串包含指定范围内有效整数的验证器

QKeyEvent

描述键事件

QKeySequence

封装作为快捷键使用的键序列

QLinearGradient

用于组合 QBrush 以指定线性渐变笔刷

QMatrix4x4

表示 3D 空间中的 4x4 变换矩阵

QMouseEvent

包含鼠标事件的描述参数

QMoveEvent

包含用于移动事件的事件参数

QMovie

采用 QImageReader 播放影片的方便类

QNativeGestureEvent

包含手势事件的描述参数

QNativeInterface::QAndroidOffscreenSurface

在 Android 的离屏表面的本机界面

QNativeInterface::QCocoaGLContext

在 macOS 的 NSOpenGLContext 的本机接口

QNativeInterface::QEGLContext

ELX 上下文的本机接口

QNativeInterface::QGLXContext

GLX 上下文的本机接口

QNativeInterface::QWGLContext

Windows WGL 上下文的本机接口

QNativeInterface::QWaylandApplication

Native interface to a Wayland application

QNativeInterface::QX11Application

到 X11 应用程序的本机接口

QOffscreenSurface

表示底层平台的离屏表面

QOpenGLContext

表示本机 OpenGL 上下文,使 OpenGL 能够渲染在 QSurface

QOpenGLContextGroup

表示共享 OpenGL 资源的上下文组

QOpenGLExtraFunctions

跨平台访问 OpenGL ES 3.0、3.1 及 3.2 API

QOpenGLFunctions

跨平台访问 OpenGL ES 2.0 API

QOpenGLTexture

封装 OpenGL 纹理对象

QPageLayout

描述页面大小、取向及边距

QPageRanges

表示页面范围的集合

QPageRanges::Range

QPageRanges::Range struct holds the from and to endpoints of a range

QPageSize

描述定义页面尺寸的大小和名称

QPagedPaintDevice

表示支持多页的描绘设备

QPaintDevice

可以采用 QPainter 进行描绘的对象的基类

QPaintDeviceWindow

也是 QPaintDevice 的 QWindow 方便子类

QPaintEngine

QPainter 如何在给定平台绘制给定设备的抽象定义

QPaintEngineState

活动描绘引擎当前状态的有关信息

QPaintEvent

包含用于描绘事件的事件参数

QPainter

在 Widget 和其它描绘设备上履行低级描绘

QPainter::PixmapFragment

此类用于结合 QPainter::drawPixmapFragments() 函数,以指定如何绘制像素图或像素图子矩形

QPainterPath

用于描绘操作的容器,使图形形状能够被构造和重用

QPainterPath::Element

QPainterPath::Element 类指定子路径的位置及类型

QPainterPathStroker

用于为给定描绘器路径生成可填充轮廓

QPalette

包含各 Widget 状态的颜色组

QPdfWriter

生成可用作描绘设备的 PDF 的类

QPen

定义 QPainter 如何绘制线条和形状的轮廓

QPicture

用于记录和重演 QPainter 命令的描绘设备

QPixelFormat

用于描述图形缓冲中不同像素布局的类

QPixmap

可以用作描绘设备的离屏图像表示

QPixmapCache

应用程序范围像素图缓存

QPixmapCache::Key

QPixmapCache::Key 类可用于有效访问 QPixmapCache

QPlatformSurfaceEvent

用于通知有关本机平台表面事件

QPointerEvent

用于指针事件的基类

QPointingDevice

描述发源鼠标、触摸或数位板事件的设备

QPointingDeviceUniqueId

标识用于指向设备的唯一对象 (譬如:令牌或手写笔)

QPolygon

使用整数精度的点列表

QPolygonF

使用浮点精度的点列表

QQuaternion

表示由向量和标量组成的四元数

QRadialGradient

用于组合 QBrush 以指定径向渐变笔刷

QRasterWindow

在 QWindow 使用 QPainter 的方便类

QRawFont

访问字体的单物理实例

QRegion

为描绘器指定裁剪区域

QRegularExpressionValidator

Used to check a string against a regular expression

QResizeEvent

包含用于重置尺寸事件的事件参数

QRgba64

包含 64 位 RGB 颜色的结构

QRgbaFloat

包含 4 部分 RGBA 浮点颜色的结构

QRhi

Accelerated 2D/3D graphics API abstraction

QRhiBuffer

Vertex, index, or uniform (constant) buffer resource

QRhiBuffer::NativeBuffer

Contains information about the underlying native resources of a buffer

QRhiColorAttachment

Describes the a single color attachment of a render target

QRhiCommandBuffer

Command buffer resource

QRhiComputePipeline

Compute pipeline state resource

QRhiD3D11InitParams

Direct3D 11 specific initialization parameters

QRhiD3D11NativeHandles

Holds the D3D device and device context used by the QRhi

QRhiD3D12CommandBufferNativeHandles

Holds the ID3D12GraphicsCommandList object that is backing a QRhiCommandBuffer

QRhiD3D12InitParams

Direct3D 12 specific initialization parameters

QRhiD3D12NativeHandles

Holds the D3D12 device used by the QRhi

QRhiDepthStencilClearValue

Specifies clear values for a depth or stencil buffer

QRhiDriverInfo

Describes the physical device, adapter, or graphics API implementation that is used by an initialized QRhi

QRhiGles2InitParams

OpenGL specific initialization parameters

QRhiGles2NativeHandles

Holds the OpenGL context used by the QRhi

QRhiGraphicsPipeline

Graphics pipeline state resource

QRhiGraphicsPipeline::StencilOpState

Describes the stencil operation state

QRhiGraphicsPipeline::TargetBlend

Describes the blend state for one color attachment

QRhiInitParams

Base class for backend-specific initialization parameters

QRhiNativeHandles

Base class for classes exposing backend-specific collections of native resource objects

QRhiNullInitParams

Null backend specific initialization parameters

QRhiNullNativeHandles

Empty

QRhiReadbackDescription

Describes a readback (reading back texture contents from possibly GPU-only memory) operation

QRhiReadbackResult

Describes the results of a potentially asynchronous buffer or texture readback operation

QRhiRenderBuffer

Renderbuffer resource

QRhiRenderBuffer::NativeRenderBuffer

Wraps a native renderbuffer object

QRhiRenderPassDescriptor

Render pass resource

QRhiRenderTarget

Represents an onscreen (swapchain) or offscreen (texture) render target

QRhiResource

Base class for classes encapsulating native resource objects

QRhiResourceUpdateBatch

Records upload and copy type of operations

QRhiSampler

Sampler resource

QRhiScissor

Specifies a scissor rectangle

QRhiShaderResourceBinding

Describes the shader resource for a single binding point

QRhiShaderResourceBindings

Encapsulates resources for making buffer, texture, sampler resources visible to shaders

QRhiShaderStage

Specifies the type and the shader code for a shader stage in the pipeline

QRhiStats

Statistics provided from the underlying memory allocator

QRhiSwapChain

Swapchain resource

QRhiSwapChainHdrInfo

Describes the high dynamic range related information of the swapchain's associated output

QRhiSwapChainProxyData

Opaque data describing native objects needed to set up a swapchain

QRhiSwapChainRenderTarget

Swapchain render target resource

QRhiTexture

Texture resource

QRhiTexture::NativeTexture

Contains information about the underlying native resources of a texture

QRhiTextureCopyDescription

Describes a texture-to-texture copy operation

QRhiTextureRenderTarget

Texture render target resource

QRhiTextureRenderTargetDescription

Describes the color and depth or depth/stencil attachments of a render target

QRhiTextureSubresourceUploadDescription

Describes the source for one mip level in a layer in a texture upload operation

QRhiTextureUploadDescription

Describes a texture upload operation

QRhiTextureUploadEntry

Describes one layer (face for cubemaps, slice for 3D textures, element for texture arrays) in a texture upload operation

QRhiVertexInputAttribute

Describes a single vertex input element

QRhiVertexInputBinding

Describes a vertex input binding

QRhiVertexInputLayout

Describes the layout of vertex inputs consumed by a vertex shader

QRhiViewport

Specifies a viewport rectangle

QRhiVulkanCommandBufferNativeHandles

Holds the Vulkan command buffer object that is backing a QRhiCommandBuffer

QRhiVulkanInitParams

Vulkan specific initialization parameters

QRhiVulkanNativeHandles

Collects device, queue, and other Vulkan objects that are used by the QRhi

QRhiVulkanRenderPassNativeHandles

Holds the Vulkan render pass object backing a QRhiRenderPassDescriptor

QScreen

用于查询屏幕特性

QScrollEvent

发送当卷动时

QScrollPrepareEvent

在预备滚动时发送

QSessionManager

访问会话管理器

QShader

Contains multiple versions of a shader translated to multiple shading languages, together with reflection metadata

QShader::NativeShaderInfo

Additional metadata about the native shader code

QShader::SeparateToCombinedImageSamplerMapping

Mapping metadata for sampler uniforms

QShaderCode

Contains source or binary code for a shader and additional metadata

QShaderDescription

Describes the interface of a shader

QShaderDescription::BlockVariable

Describes a member of a uniform or push constant block

QShaderDescription::BuiltinVariable

Describes a built-in variable

QShaderDescription::InOutVariable

Describes an input or output variable in the shader

QShaderDescription::PushConstantBlock

Describes a push constant block

QShaderDescription::StorageBlock

Describes a shader storage block

QShaderDescription::UniformBlock

Describes a uniform block

QShaderKey

Specifies the shading language, the version with flags, and the variant

QShaderVersion

Specifies the shading language version

QShortcut

用于创建键盘快捷键

QShortcutEvent

当用户按下组合键时生成的事件

QShowEvent

当展示 Widget 时发送的事件

QSinglePointEvent

包含单点指针事件 (譬如:鼠标事件) 的基类

QStandardItem

用于 QStandardItemModel 类的项

QStandardItemModel

用于存储自定义数据的一般模型

QStaticText

当文本及其布局很少更新时,启用优化文本绘制

QStatusTipEvent

用于在状态栏展示消息的事件

QStyleHints

包含平台特定提示及设置

QSupportedWritingSystems

当采用内部 Qt fontdatabase (字体数据库) 注册字体时使用

QSurface

Qt 中可渲染表面的抽象

QSurfaceFormat

表示 QSurface 的格式

QSyntaxHighlighter

允许您定义句法高亮规则,此外,还可以使用该类查询文档的当前格式或用户数据

QTabletEvent

包含数位板事件的描述参数

QTextBlock

用于 QTextDocument 中文本片段的容器

QTextBlock::iterator

QTextBlock::iterator 类提供用于读取 QTextBlock 内容的迭代器

QTextBlockFormat

用于 QTextDocument 文本块的格式化信息

QTextBlockGroup

QTextDocument 的文本块容器

QTextBlockUserData

用于将自定义数据关联文本块

QTextCharFormat

用于 QTextDocument 字符的格式化信息

QTextCursor

提供访问和修改 QTextDocument 的 API

QTextDocument

保持格式化文本

QTextDocumentFragment

表示一块来自 QTextDocument 的格式化文本

QTextDocumentWriter

用于将 QTextDocument 写入文件或其它设备的格式无关接口

QTextFormat

用于 QTextDocument 的格式化信息

QTextFragment

采用单 QTextCharFormat 保存一块 QTextDocument 文本

QTextFrame

表示 QTextDocument 框架

QTextFrameFormat

用于 QTextDocument 框架的格式化信息

QTextImageFormat

用于 QTextDocument 图像的格式化信息

QTextInlineObject

表示 QAbstractTextDocumentLayout 内联对象及其实现

QTextItem

在自定义描绘引擎中描绘文本所需的所有信息

QTextLayout

用于布置和渲染文本

QTextLayout::FormatRange

QTextLayout::FormatRange 结构用于为文本布局内容中的指定区域应用额外格式信息

QTextLength

封装用于 QTextDocument 中的不同长度类型

QTextLine

表示一行 QTextLayout 文本

QTextList

QTextDocument 项的装饰列表

QTextListFormat

用于 QTextDocument 列表的格式化信息

QTextObject

可以将 QTextDocument 各部分分组在一起的不同种类对象的基类

QTextObjectInterface

允许在 QTextDocuments 中绘制自定义文本对象

QTextOption

一般富文本特性的描述

QTextOption::Tab

QTextTable

表示 QTextDocument 中的表格

QTextTableCell

表示 QTextTable 中单元格的特性

QTextTableCellFormat

用于 QTextDocument 中表格单元格的格式化信息

QTextTableFormat

用于 QTextDocument 中表格的格式化信息

QTouchEvent

包含触摸事件的描述参数

QTransform

指定坐标系的 2D 变换

QUndoCommand

存储在 QUndoStack 中的所有命令的基类

QUndoGroup

QUndoStack 对象的组

QUndoStack

QUndoCommand 对象的堆栈

QUtiMimeConverter

Converts between a MIME type and a Uniform Type Identifier (UTI) format

QValidator

输入文本的验证

QVector2D

表示 2D 空间中的向量或顶点

QVector3D

表示 3D 空间中的向量或顶点

QVector4D

表示 4D 空间中的向量或顶点

QVulkanDeviceFunctions

跨平台访问设备级核心 Vulkan 1.2 API

QVulkanExtension

Represents information about a Vulkan extension

QVulkanFunctions

跨平台访问实例级核心 Vulkan 1.2 API

QVulkanInfoVector

A specialized QList for QVulkanLayer and QVulkanExtension

QVulkanInstance

表示使 Vulkan 能够渲染到 QSurface 的本机 Vulkan 实例

QVulkanLayer

Represents information about a Vulkan layer

QVulkanWindow

用于履行 Vulkan 渲染的 QWindow 方便子类

QVulkanWindowRenderer

用于为 QVulkanWindow 实现特定应用程序渲染逻辑

QWhatsThisClickedEvent

可用于处理 What's This? 文本中的超链接的事件

QWheelEvent

包含滚轮事件的描述参数

QWindow

表示在底层窗口系统中的窗口

QWindowStateChangeEvent

在窗口状态改变之前的窗口状态

QWindowsMimeConverter

将开放标准 MIME 映射到 Windows 剪贴板格式

详细描述

The Qt GUI 页面包含如何使用模块的有关信息。