Qt Widgets C++ Classes

The Qt Widgets module extends Qt GUI with C++ widget functionality. More...

Classes

QAccessibleWidget

为QWidgets实现QAccessibleInterface

QColorDialog

用于指定颜色的对话框小部件

QDialog

对话框窗口的基类

QErrorMessage

错误信息显示对话框

QFileDialog

允许用户选择文件或目录的对话框

QFileSystemModel

本地文件系统的数据模型

QFontDialog

用于选择字体的对话框小部件

QInputDialog

简单的便捷对话框,可从用户那里获得一个值

QMessageBox

模态对话框,用于通知用户或询问用户问题并接收答案

QProgressDialog

Feedback on the progress of a slow operation

QWizard

向导框架

QWizardPage

向导页面的基类

QGraphicsBlurEffect

模糊效果

QGraphicsColorizeEffect

着色效果

QGraphicsDropShadowEffect

投影效果

QGraphicsEffect

所有图形效果的基类

QGraphicsOpacityEffect

不透明度效应

QGraphicsAnchor

表示QGraphicsAnchorLayout中两个项目之间的锚点

QGraphicsAnchorLayout

可以在“图形视图”中将widgets固定在一起的布局

QGraphicsGridLayout

用于在“图形视图”中管理widgets的网格布局

QAbstractGraphicsShapeItem

所有路径项目的共同基础

QGraphicsEllipseItem

可以添加到QGraphicsScene的椭圆项

QGraphicsItem

QGraphicsScene中所有图形项的基类

QGraphicsItemGroup

将一组项目视为单个项目的容器

QGraphicsLineItem

您可以添加到QGraphicsScene的订单项

QGraphicsObject

需要信号,插槽和属性的所有图形项的基类

QGraphicsPathItem

可以添加到QGraphicsScene的路径项

QGraphicsPixmapItem

可以添加到QGraphicsScene的Pixmap项

QGraphicsPolygonItem

可以添加到QGraphicsScene的多边形项目

QGraphicsRectItem

可以添加到QGraphicsScene的矩形项目

QGraphicsSimpleTextItem

您可以添加到QGraphicsScene的简单文本路径项

QGraphicsTextItem

可以添加到QGraphicsScene以显示格式化文本的文本项

QGraphicsLayout

图形视图中所有布局的基类

QGraphicsLayoutItem

可以继承以允许您的自定义项目由布局管理

QGraphicsLinearLayout

用于在“图形视图”中管理小部件的水平或垂直布局

QGraphicsProxyWidget

用于将QWidget嵌入QGraphicsScene的代理层

QGraphicsScene

用于管理大量2D图形项目的表面

QGraphicsSceneContextMenuEvent

图形视图框架中的上下文菜单事件

QGraphicsSceneDragDropEvent

图形视图框架中的拖放事件

QGraphicsSceneEvent

所有图形视图相关事件的基类

QGraphicsSceneHelpEvent

请求工具提示时的事件

QGraphicsSceneHoverEvent

在图形视图框架中悬停事件

QGraphicsSceneMouseEvent

图形视图框架中的鼠标事件

QGraphicsSceneMoveEvent

图形视图框架中的小部件移动事件

QGraphicsSceneResizeEvent

在图形视图框架中调整窗口小部件大小的事件

QGraphicsSceneWheelEvent

图形视图框架中的Wheel事件

QGraphicsRotation

围绕给定轴的旋转变换

QGraphicsScale

规模转换

QGraphicsTransform

在QGraphicsItems上构建高级转换的抽象基类

QGraphicsView

用于显示QGraphicsScene内容的小部件

QGraphicsWidget

QGraphicsScene中所有小部件项目的基类

QAbstractItemDelegate

用于显示和编辑模型中的数据项

QAbstractItemView

项目视图类的基本功能

QColumnView

列视图的模型/视图实现

QDataWidgetMapper

Mapping between a section of a data model to widgets

QFileIconProvider

File icons for the QDirModel and the QFileSystemModel classes

QHeaderView

Header row or header column for item views

QItemDelegate

Display and editing facilities for data items from a model

QItemEditorCreator

Makes it possible to create item editor creator bases without subclassing QItemEditorCreatorBase

QItemEditorCreatorBase

Abstract base class that must be subclassed when implementing new item editor creators

QItemEditorFactory

Widgets for editing item data in views and delegates

QStandardItemEditorCreator

The possibility to register widgets without having to subclass QItemEditorCreatorBase

QListView

List or icon view onto a model

QListWidget

Item-based list widget

QListWidgetItem

Item for use with the QListWidget item view class

QStyledItemDelegate

Display and editing facilities for data items from a model

QTableView

Default model/view implementation of a table view

QTableWidget

Item-based table view with a default model

QTableWidgetItem

Item for use with the QTableWidget class

QTableWidgetSelectionRange

Way to interact with selection in a model without using model indexes and a selection model

QTreeView

Default model/view implementation of a tree view

QTreeWidget

Tree view that uses a predefined tree model

QTreeWidgetItem

Item for use with the QTreeWidget convenience class

QTreeWidgetItemIterator

Way to iterate over the items in a QTreeWidget instance

QAction

Abstract user interface action that can be inserted into widgets

QActionGroup

Groups actions together

QApplication

Manages the GUI application's control flow and main settings

QBoxLayout

Lines up child widgets horizontally or vertically

QHBoxLayout

Lines up widgets horizontally

QVBoxLayout

Lines up widgets vertically

QDesktopWidget

Access to screen information on multi-head systems

QFormLayout

Manages forms of input widgets and their associated labels

QFormLayout::TakeRowResult

Contains the result of a QFormLayout::takeRow() call

QGesture

Represents a gesture, containing properties that describe the corresponding user input

QGestureEvent

The description of triggered gestures

QPanGesture

Describes a panning gesture made by the user

QPinchGesture

Describes a pinch gesture made by the user

QSwipeGesture

Describes a swipe gesture made by the user

QTapAndHoldGesture

Describes a tap-and-hold (aka LongTap) gesture made by the user

QTapGesture

Describes a tap gesture made by the user

QGestureRecognizer

The infrastructure for gesture recognition

QGridLayout

Lays out widgets in a grid

QLayout

The base class of geometry managers

QLayoutItem

Abstract item that a QLayout manipulates

QSpacerItem

Blank space in a layout

QWidgetItem

Layout item that represents a widget

QOpenGLWidget

Widget for rendering OpenGL graphics

QShortcut

Used to create keyboard shortcuts

QSizePolicy

Layout attribute describing horizontal and vertical resizing policy

QStackedLayout

Stack of widgets where only one widget is visible at a time

QToolTip

Tool tips (balloon help) for any widget

QWhatsThis

Simple description of any widget, i.e. answering the question "What's This?"

QWidget

The base class of all user interface objects

QWidgetAction

Extends QAction by an interface for inserting custom widgets into action based containers, such as toolbars

QKeyEventTransition

Transition for key events

QMouseEventTransition

Transition for mouse events

QCommonStyle

Encapsulates the common Look and Feel of a GUI

QTileRules

The rules used to draw a pixmap or image split into nine segments

QProxyStyle

Convenience class that simplifies dynamically overriding QStyle elements

QStyle

Abstract base class that encapsulates the look and feel of a GUI

QStyleFactory

Creates QStyle objects

QStyleHintReturn

Style hints that return more than basic data types

QStyleHintReturnMask

Style hints that return a QRegion

QStyleHintReturnVariant

Style hints that return a QVariant

QStyleOption

Stores the parameters used by QStyle functions

QStyleOptionButton

Used to describe the parameters for drawing buttons

QStyleOptionComboBox

Used to describe the parameter for drawing a combobox

QStyleOptionComplex

Used to hold parameters that are common to all complex controls

QStyleOptionDockWidget

Used to describe the parameters for drawing a dock widget

QStyleOptionFocusRect

Used to describe the parameters for drawing a focus rectangle with QStyle

QStyleOptionFrame

Used to describe the parameters for drawing a frame

QStyleOptionGraphicsItem

Used to describe the parameters needed to draw a QGraphicsItem

QStyleOptionGroupBox

Describes the parameters for drawing a group box

QStyleOptionHeader

Used to describe the parameters for drawing a header

QStyleOptionMenuItem

Used to describe the parameter necessary for drawing a menu item

QStyleOptionProgressBar

Used to describe the parameters necessary for drawing a progress bar

QStyleOptionRubberBand

Used to describe the parameters needed for drawing a rubber band

QStyleOptionSizeGrip

Used to describe the parameter for drawing a size grip

QStyleOptionSlider

Used to describe the parameters needed for drawing a slider

QStyleOptionSpinBox

Used to describe the parameters necessary for drawing a spin box

QStyleOptionTab

Used to describe the parameters for drawing a tab bar

QStyleOptionTabBarBase

Used to describe the base of a tab bar, i.e. the part that the tab bar usually overlaps with

QStyleOptionTabWidgetFrame

Used to describe the parameters for drawing the frame around a tab widget

QStyleOptionTitleBar

Used to describe the parameters for drawing a title bar

QStyleOptionToolBar

Used to describe the parameters for drawing a toolbar

QStyleOptionToolBox

Used to describe the parameters needed for drawing a tool box

QStyleOptionToolButton

Used to describe the parameters for drawing a tool button

QStyleOptionViewItem

Used to describe the parameters used to draw an item in a view widget

QStylePainter

Convenience class for drawing QStyle elements inside a widget

QStylePlugin

Abstract base for custom QStyle plugins

QColormap

Maps device independent QColors to device dependent pixel values

QCompleter

Completions based on an item model

QScroller

Enables kinetic scrolling for any scrolling widget or graphics item

QScrollerProperties

Stores the settings for a QScroller

QSystemTrayIcon

Icon for an application in the system tray

QUndoGroup

Group of QUndoStack objects

QUndoCommand

The base class of all commands stored on a QUndoStack

QUndoStack

Stack of QUndoCommand objects

QUndoView

Displays the contents of a QUndoStack

QAbstractButton

The abstract base class of button widgets, providing functionality common to buttons

QAbstractScrollArea

Scrolling area with on-demand scroll bars

QAbstractSlider

Integer value within a range

QAbstractSpinBox

Spinbox and a line edit to display values

QButtonGroup

Container to organize groups of button widgets

QCalendarWidget

Monthly based calendar widget allowing the user to select a date

QCheckBox

Checkbox with a text label

QComboBox

Combined button and popup list

QCommandLinkButton

Vista style command link button

QDateEdit

Widget for editing dates based on the QDateTimeEdit widget

QDateTimeEdit

Widget for editing dates and times

QTimeEdit

Widget for editing times based on the QDateTimeEdit widget

QDial

Rounded range control (like a speedometer or potentiometer)

QDialogButtonBox

Widget that presents buttons in a layout that is appropriate to the current widget style

QDockWidget

Widget that can be docked inside a QMainWindow or floated as a top-level window on the desktop

QFocusFrame

Focus frame which can be outside of a widget's normal paintable area

QFontComboBox

Combobox that lets the user select a font family

QFrame

The base class of widgets that can have a frame

QGroupBox

Group box frame with a title

QKeySequenceEdit

Allows to input a QKeySequence

QLabel

Text or image display

QLCDNumber

Displays a number with LCD-like digits

QLineEdit

One-line text editor

QMacCocoaViewContainer

Widget for macOS that can be used to wrap arbitrary Cocoa views (i.e., NSView subclasses) and insert them into Qt hierarchies

QMacNativeWidget

Widget for macOS that provides a way to put Qt widgets into Cocoa hierarchies

QMainWindow

Main application window

QMdiArea

Area in which MDI windows are displayed

QMdiSubWindow

Subwindow class for QMdiArea

QMenu

Menu widget for use in menu bars, context menus, and other popup menus

QMenuBar

Horizontal menu bar

QPlainTextDocumentLayout

Implements a plain text layout for QTextDocument

QPlainTextEdit

Widget that is used to edit and display plain text

QProgressBar

Horizontal or vertical progress bar

QPushButton

Command button

QRadioButton

Radio button with a text label

QRubberBand

Rectangle or line that can indicate a selection or a boundary

QScrollArea

Scrolling view onto another widget

QScrollBar

Vertical or horizontal scroll bar

QSizeGrip

Resize handle for resizing top-level windows

QSlider

Vertical or horizontal slider

QDoubleSpinBox

Spin box widget that takes doubles

QSpinBox

Spin box widget

QSplashScreen

Splash screen that can be shown during application startup

QSplitter

Implements a splitter widget

QSplitterHandle

Handle functionality for the splitter

QStackedWidget

Stack of widgets where only one widget is visible at a time

QStatusBar

Horizontal bar suitable for presenting status information

QTabBar

Tab bar, e.g. for use in tabbed dialogs

QTabWidget

Stack of tabbed widgets

QTextBrowser

Rich text browser with hypertext navigation

QTextEdit::ExtraSelection

QTextEdit::ExtraSelection structure provides a way of specifying a character format for a given selection in a document

QTextEdit

Widget that is used to edit and display both plain and rich text

QToolBar

Movable panel that contains a set of controls

QToolBox

Column of tabbed widget items

QToolButton

Quick-access button to commands or options, usually used inside a QToolBar

Detailed Description

To include the definitions of the module's classes, use the following directive:


  #include <QtWidgets>

To link against the module, add this line to your qmake .pro file:


  QT += widgets