Qt 5.9.6 Qt Widgets C++ Classes Reference Documentation(参考手册)

文档声明:
以下资料均属于本人在学习过程中产出的学习笔记,如果错误或者遗漏之处,请多多指正。并且该文档在后期会随着学习的深入不断补充完善。感谢各位的参考查看。


笔记资料仅供学习交流使用,转载请标明出处,谢谢配合。
作者:Aliven888

1、简述

参考文档版本:Qt 5.9.6
Qt Widgets C++ Classes
以下为本人在学习Qt时,为了进一步了解Qt中有哪些工具类,以便于后面的开发参考查询进行的总结。

类名 功能描述
QAccessibleWidget 为QWidget实现QAccessible接口
QColorDialog 颜色操作对话框
QDialog 对话框基类
QErrorMessage 错误信息显示对话框
QFileDialog 文件操作对话框
QFileSystemModel 本地文件系统的数据模型
QFontDialog 字体选择对话框
QInputDialog 简单的便捷输入对话框,用于用户那里获得一个值
QMessageBox 模态对话框,用于通知用户或询问用户问题并接收答案(消息弹框就是使用该实现的)
QProgressDialog 进度显示对话框,主要用于显示任务的处理进度
QWizard 向导框架(可是实现软件的安装向导功能)
QWizardPage 向导页面的基类(向导是有多个页面的,完成向导功能需要该类配合)
QGraphicsBlurEffect Blur effect
QGraphicsColorizeEffect Colorize effect
QGraphicsDropShadowEffect Drop shadow effect
QGraphicsEffect The base class for all graphics effects
QGraphicsOpacityEffect Opacity effect
QGraphicsAnchor Represents an anchor between two items in a QGraphicsAnchorLayout
QGraphicsAnchorLayout Layout where one can anchor widgets together in Graphics View
QGraphicsGridLayout Grid layout for managing widgets in Graphics View
QAbstractGraphicsShapeItem Common base for all path items
QGraphicsEllipseItem Ellipse item that you can add to a QGraphicsScene
QGraphicsItem The base class for all graphical items in a QGraphicsScene
QGraphicsItemGroup Container that treats a group of items as a single item
QGraphicsLineItem Line item that you can add to a QGraphicsScene
QGraphicsObject Base class for all graphics items that require signals, slots and properties
QGraphicsPathItem Path item that you can add to a QGraphicsScene
QGraphicsPixmapItem Pixmap item that you can add to a QGraphicsScene
QGraphicsPolygonItem Polygon item that you can add to a QGraphicsScene
QGraphicsRectItem Rectangle item that you can add to a QGraphicsScene
QGraphicsSimpleTextItem Simple text path item that you can add to a QGraphicsScene
QGraphicsTextItem Text item that you can add to a QGraphicsScene to display formatted text
QGraphicsLayout The base class for all layouts in Graphics View
QGraphicsLayoutItem Can be inherited to allow your custom items to be managed by layouts
QGraphicsLinearLayout Horizontal or vertical layout for managing widgets in Graphics View
QGraphicsProxyWidget Proxy layer for embedding a QWidget in a QGraphicsScene
QGraphicsScene Surface for managing a large number of 2D graphical items
QGraphicsSceneContextMenuEvent Context menu events in the graphics view framework
QGraphicsSceneDragDropEvent Events for drag and drop in the graphics view framework
QGraphicsSceneEvent Base class for all graphics view related events
QGraphicsSceneHelpEvent Events when a tooltip is requested
QGraphicsSceneHoverEvent Hover events in the graphics view framework
QGraphicsSceneMouseEvent Mouse events in the graphics view framework
QGraphicsSceneMoveEvent Events for widget moving in the graphics view framework
QGraphicsSceneResizeEvent Events for widget resizing in the graphics view framework
QGraphicsSceneWheelEvent Wheel events in the graphics view framework
QGraphicsRotation Rotation transformation around a given axis
QGraphicsScale Scale transformation
QGraphicsTransform Abstract base class for building advanced transformations on QGraphicsItems
QGraphicsView Widget for displaying the contents of a QGraphicsScene
QGraphicsWidget The base class for all widget items in a QGraphicsScene
QAbstractItemDelegate Used to display and edit data items from a model
QAbstractItemView The basic functionality for item view classes
QColumnView Model/view implementation of a column view
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 水平或垂直布局类
QHBoxLayout 水平布局类
QVBoxLayout 垂直布局类
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 网格布局工具类
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 所有用户界面对象的基类
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 带有文本标签的复选框
QComboBox 下拉列表框
QCommandLinkButton Vista style command link button
QDateEdit 日期编辑(日历控件)
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 静态文本框(可以显示文本 或者 图片)
QLCDNumber 显示带有类似LCD的数字的数字
QLineEdit 单行文本编辑框
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 菜单,用于菜单栏,上下文菜单和其他弹出菜单
QMenuBar 菜单栏, 用于将QMenu的对象显示子目标位置
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 按钮类,用于定义可点击按钮对象
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 垂直或水平滑块
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 状态栏(用于显示状态信息)
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 用于编辑和显示纯文本和富文本的小部件
QToolBar 工具栏
QToolBox Column of tabbed widget items
QToolButton Quick-access button to commands or options, usually used inside a QToolBar

2、笔记跟新记录

时间 内容
2020-10-05 创建笔记

猜你喜欢

转载自blog.csdn.net/Aliven888/article/details/108945838