PySide6.QtWidgets#
- ExtraSelection
- QAbstractButton
- QAbstractGraphicsShapeItem
- QAbstractItemDelegate
- QAbstractItemView
- QAbstractScrollArea
- QAbstractSlider
- QAbstractSpinBox
- QAccessibleWidget
- QApplication
- QBoxLayout
- QButtonGroup
- QCalendarWidget
- QCheckBox
- QColorDialog
- QColormap
- QColumnView
- QComboBox
- QCommandLinkButton
- QCommonStyle
- QCompleter
- QDataWidgetMapper
- QDateEdit
- QDateTimeEdit
- QDial
- QDialog
- QDialogButtonBox
- QDockWidget
- QDoubleSpinBox
- QErrorMessage
- QFileDialog
- QFileIconProvider
- QFileSystemModel
- QFocusFrame
- QFontComboBox
- QFontDialog
- QFormLayout
- QFrame
- QGesture
- QGestureEvent
- QGestureRecognizer
- QGraphicsAnchor
- QGraphicsAnchorLayout
- QGraphicsBlurEffect
- QGraphicsColorizeEffect
- QGraphicsDropShadowEffect
- QGraphicsEffect
- QGraphicsEllipseItem
- QGraphicsGridLayout
- QGraphicsItem
- QGraphicsItemAnimation
- QGraphicsItemGroup
- QGraphicsLayout
- QGraphicsLayoutItem
- QGraphicsLineItem
- QGraphicsLinearLayout
- QGraphicsObject
- QGraphicsOpacityEffect
- QGraphicsPathItem
- QGraphicsPixmapItem
- QGraphicsPolygonItem
- QGraphicsProxyWidget
- QGraphicsRectItem
- QGraphicsRotation
- QGraphicsScale
- QGraphicsScene
- QGraphicsSceneContextMenuEvent
- QGraphicsSceneDragDropEvent
- QGraphicsSceneEvent
- QGraphicsSceneHelpEvent
- QGraphicsSceneHoverEvent
- QGraphicsSceneMouseEvent
- QGraphicsSceneMoveEvent
- QGraphicsSceneResizeEvent
- QGraphicsSceneWheelEvent
- QGraphicsSimpleTextItem
- QGraphicsTextItem
- QGraphicsTransform
- QGraphicsView
- QGraphicsWidget
- QGridLayout
- QGroupBox
- QHBoxLayout
- QHeaderView
- QInputDialog
- QItemDelegate
- QItemEditorCreatorBase
- QItemEditorFactory
- QKeySequenceEdit
- QLCDNumber
- QLabel
- QLayout
- QLayoutItem
- QLineEdit
- QListView
- QListWidget
- QListWidgetItem
- QMainWindow
- QMdiArea
- QMdiSubWindow
- QMenu
- QMenuBar
- QMessageBox
- QPanGesture
- QPinchGesture
- QPlainTextDocumentLayout
- QPlainTextEdit
- QProgressBar
- QProgressDialog
- QProxyStyle
- QPushButton
- QRadioButton
- QRubberBand
- QScrollArea
- QScrollBar
- QScroller
- QScrollerProperties
- QSizeGrip
- QSizePolicy
- QSlider
- QSpacerItem
- QSpinBox
- QSplashScreen
- QSplitter
- QSplitterHandle
- QStackedLayout
- QStackedWidget
- QStatusBar
- QStyle
- QStyleFactory
- QStyleHintReturn
- QStyleHintReturnMask
- QStyleHintReturnVariant
- QStyleOption
- QStyleOptionButton
- QStyleOptionComboBox
- QStyleOptionComplex
- QStyleOptionDockWidget
- QStyleOptionFocusRect
- QStyleOptionFrame
- QStyleOptionGraphicsItem
- QStyleOptionGroupBox
- QStyleOptionHeader
- QStyleOptionHeaderV2
- QStyleOptionMenuItem
- QStyleOptionProgressBar
- QStyleOptionRubberBand
- QStyleOptionSizeGrip
- QStyleOptionSlider
- QStyleOptionSpinBox
- QStyleOptionTab
- QStyleOptionTabBarBase
- QStyleOptionTabWidgetFrame
- QStyleOptionTitleBar
- QStyleOptionToolBar
- QStyleOptionToolBox
- QStyleOptionToolButton
- QStyleOptionViewItem
- QStylePainter
- QStyledItemDelegate
- QSwipeGesture
- QSystemTrayIcon
- QTabBar
- QTabWidget
- QTableView
- QTableWidget
- QTableWidgetItem
- QTableWidgetSelectionRange
- QTapAndHoldGesture
- QTapGesture
- QTextBrowser
- QTextEdit
- QTileRules
- QTimeEdit
- QToolBar
- QToolBox
- QToolButton
- QToolTip
- QTreeView
- QTreeWidget
- QTreeWidgetItem
- QTreeWidgetItemIterator
- QUndoView
- QVBoxLayout
- QWhatsThis
- QWidget
- QWidgetAction
- QWidgetItem
- QWizard
- QWizardPage
- TakeRowResult
Detailed Description#
A module which provides a set of C++ technologies for building user interfaces
The QtWidgets module provides a set of UI elements to create classic desktop-style user interfaces.
Widgets#
Widgets are the primary elements for creating user interfaces in Qt. They can display data and status information, receive user input, and provide a container for other widgets that should be grouped together. A widget that is not embedded in a parent widget is called a window.
The QWidget
class provides the
basic capability to render to the screen, and to handle user input
events. All UI elements that Qt provides are either subclasses of
QWidget
, or are used in
connection with a QWidget
subclass. Creating custom widgets is done by subclassing
QWidget
or a suitable subclass and
reimplementing the virtual event handlers.
Styles#
Styles draw on behalf of
widgets and encapsulate the look and feel of a GUI. Qt’s built-in
widgets use the QStyle
class to
perform nearly all of their drawing, ensuring that they look exactly
like the equivalent native widgets.
Qt Style Sheets are a powerful mechanism that
allows you to customize the appearance of widgets, in addition to what
is already possible by subclassing
QStyle
.
Layouts#
Layouts are an elegant and flexible way to
automatically arrange child widgets within their container. Each
widget reports its size requirements to the layout through the
sizeHint
and
sizePolicy
properties,
and the layout distributes the available space accordingly.
Qt Designer is a powerful tool for interactively creating and arranging widgets in layouts.
Model/View Classes#
The model/view architecture provides classes that manage the way data is presented to the user. Data-driven applications which use lists and tables are structured to separate the data and view using models, views, and delegates.
Graphics View#
The Graphics View Framework is for managing and interacting with a large number of custom-made 2D graphical items, and a view widget for visualizing the items, with support for zooming and rotation.
Using the Module#
To include the definitions of modules classes, use the following directive:
import PySide6.QtWidgets
List of Classes#
A |
|||
B |
|||
C |
|||
D |
|||
E |
|||
F |
|||
G |
|||
H |
|||
I |
|||
K |
|||
L |
|||
M |
|||
P |
|||
R |
|||
S |
|||
T |
|||
U |
|||
V |
|||
W |
|||