Widget类
The Widget Classes
下面章节介绍widget类. 示例参见 Qt Widget Gallery.
基础Widget类
这些基础widgets(控件)类, 如. 按钮, 下拉列表框和滚动条, 可以直接使用.
所有UI对象的基类 | |
带有文本标签的复选框 | |
下列列表框 | |
Vista风格的命令链接按钮 | |
基于QDateTimeEdit的日期编辑widget | |
日期时间编辑widget | |
基于QDateTimeEdit的时间编辑widget | |
圆形范围控件 (类似速度仪或电位器) | |
位于正常绘制区域之外的焦点框 | |
字体下拉列表框 | |
显示文本或图片 | |
显示类似LCD数字界面 | |
单行文本编辑器 | |
菜单widget | |
水平或垂直进度条 | |
命令按钮 | |
带文本标签的单选按钮 | |
依附其他widget的滚动区域 | |
垂直或水平滚动条 | |
顶级窗口的大小调节控件 | |
垂直或水平滑块 | |
浮点型数字调节框 | |
数字调节框 | |
标签栏, 例如. 用于标签对话框 | |
标签页 | |
列表式标签页 | |
命令或选项类的快捷访问按钮, 通常用于工具条 |
高级Widget类
高级GUI widgets, 如. 标签页和进度条, 提供复杂的UI控制.
实现模型/视图框架中的列表视图 | |
部分数据模型到widgets的映射 | |
基于模型的列表或图标视图 | |
实现模型/视图框架中的默认表格视图 | |
实现模型/视图框架中的默认树形视图 | |
在multi-head系统中访问屏幕信息 | |
显示QUndoStack的内容 | |
以月为单位的日历widget, 允许用户选择日期 | |
承载macOS的Cocoa视图的Widget (即., NSView 派生类), 使其纳入Qt管理体系 | |
辅助Qt widgets加入macOS的Cocoa体系的widget |
抽象 Widget 类
抽象widget是一组基类. 它们不能直接使用, 必须提供子类化实现.
对话框的基类 | |
按钮widgets的抽象基类, 提供按钮类的公共函数 | |
带滚动条的滚动区域 | |
整型范围 | |
单行编辑的数字调节框 | |
带边框的widgets基类 |
组织Widget类
这种类包含分隔器, 标签栏, 按钮组等, 用于管理和分组GUI基础widget, 组成更复杂的应用程序和对话框.
将按钮widgets分组的容器 | |
带有标题的分组框 | |
实现分隔功能的widget | |
分隔器的辅助类 | |
每次仅显示一个widget的层叠widget | |
标签页 |
图像视图类
The base class for all graphics effects | |
Represents an anchor between two items in a QGraphicsAnchorLayout | |
Layout where one can anchor widgets together in Graphics View | |
Grid layout for managing widgets in Graphics View | |
Common base for all path items | |
Ellipse item that you can add to a QGraphicsScene | |
The base class for all graphical items in a QGraphicsScene | |
Container that treats a group of items as a single item | |
Line item that you can add to a QGraphicsScene | |
Base class for all graphics items that require signals, slots and properties | |
Path item that you can add to a QGraphicsScene | |
Pixmap item that you can add to a QGraphicsScene | |
Polygon item that you can add to a QGraphicsScene | |
Rectangle item that you can add to a QGraphicsScene | |
Simple text path item that you can add to a QGraphicsScene | |
Text item that you can add to a QGraphicsScene to display formatted text | |
The base class for all layouts in Graphics View | |
Can be inherited to allow your custom items to be managed by layouts | |
Horizontal or vertical layout for managing widgets in Graphics View | |
Proxy layer for embedding a QWidget in a QGraphicsScene | |
Surface for managing a large number of 2D graphical items | |
Context menu events in the graphics view framework | |
Events for drag and drop in the graphics view framework | |
Base class for all graphics view related events | |
Events when a tooltip is requested | |
Hover events in the graphics view framework | |
Mouse events in the graphics view framework | |
Events for widget moving in the graphics view framework | |
Events for widget resizing in the graphics view framework | |
Wheel events in the graphics view framework | |
Abstract base class for building advanced transformations on QGraphicsItems | |
Widget for displaying the contents of a QGraphicsScene | |
The base class for all widget items in a QGraphicsScene | |
Used to describe the parameters needed to draw a QGraphicsItem | |
QGraphicsItem that can be used to render the contents of SVG files |
模型/视图类
The abstract interface for item model classes | |
Abstract model that can be subclassed to create one-dimensional list models | |
Abstract model that can be subclassed to create table models | |
Used to locate data in a data model | |
Used to locate data in a data model | |
Base class for proxy item models that can do sorting, filtering or other data processing tasks | |
Proxies its source model unmodified | |
Manages information about selected items in a model | |
Keeps track of a view's selected items | |
Manages information about a range of selected items in a model | |
Support for sorting and filtering data passed between another model and a view | |
Model that supplies strings to views | |
Item for use with the QStandardItemModel class | |
Generic model for storing custom data | |
Data model for the local filesystem | |
Used to display and edit data items from a model | |
The basic functionality for item view classes | |
Model/view implementation of a column view | |
Mapping between a section of a data model to widgets | |
Header row or header column for item views | |
Display and editing facilities for data items from a model | |
Makes it possible to create item editor creator bases without subclassing QItemEditorCreatorBase | |
Abstract base class that must be subclassed when implementing new item editor creators | |
Widgets for editing item data in views and delegates | |
The possibility to register widgets without having to subclass QItemEditorCreatorBase | |
List or icon view onto a model | |
Item-based list widget | |
Item for use with the QListWidget item view class | |
Display and editing facilities for data items from a model | |
Default model/view implementation of a table view | |
Item-based table view with a default model | |
Item for use with the QTableWidget class | |
Way to interact with selection in a model without using model indexes and a selection model | |
Default model/view implementation of a tree view | |
Tree view that uses a predefined tree model | |
Item for use with the QTreeWidget convenience class | |
Way to iterate over the items in a QTreeWidget instance |
主窗口及相关类
Abstract user interface action that can be inserted into widgets | |
Groups actions together | |
Extends QAction by an interface for inserting custom widgets into action based containers, such as toolbars | |
Widget that can be docked inside a QMainWindow or floated as a top-level window on the desktop | |
Main application window | |
Area in which MDI windows are displayed | |
Subwindow class for QMdiArea | |
Menu widget for use in menu bars, context menus, and other popup menus | |
Horizontal menu bar | |
Resize handle for resizing top-level windows | |
Horizontal bar suitable for presenting status information | |
Movable panel that contains a set of controls |
Widget外观及相关类
Classes used for customizing UI appearance and style.
Mouse cursor with an arbitrary shape | |
Contains color groups for each widget state | |
Colors based on RGB, HSV or CMYK values | |
Specifies a font used for drawing text | |
Information about the fonts available in the underlying window system | |
General information about fonts | |
Represents an anchor between two items in a QGraphicsAnchorLayout | |
Layout where one can anchor widgets together in Graphics View | |
Encapsulates the common Look and Feel of a GUI | |
Abstract base class that encapsulates the look and feel of a GUI | |
创建QStyle对象 | |
Style hints that return more than basic data types | |
Style hints that return a QRegion | |
Style hints that return a QVariant | |
QStyle函数用于存储参数 | |
在widget中绘制QStyle元素的便捷类 |
布局类
代表QGraphicsAnchorLayout中两个item间的一个anchor | |
图形视图框架中的anchor widgets布局 | |
线性水平或垂直布局 | |
线性水平布局 | |
线性垂直布局 | |
输入widgets和关联标签的表格布局 | |
网格布局 | |
管理geometry的基类 | |
一个QLayout操控的抽象item | |
布局中的空白空间 | |
表示widget的布局item | |
描述水平或垂直大小调整策略的布局属性 | |
每次仅显示一个widget的层叠布局 | |
将按钮widgets分组的容器 | |
带有标题的分组框 | |
每次仅显示一个widget的层叠widget |