Widgets Classes#
The primary elements for designing user interfaces in Qt.
The Widget Classes#
The following sections list the widget classes. See the Qt Widget Gallery for some examples.
Basic Widget Classes#
These basic widgets (controls), e.g. buttons, comboboxes and scroll bars, are designed for direct use.
![]()
![]()
![]()
![]()
![]()
![]()
PySide6.QtWidgets.QWidgetThe QWidget class is the base class of all user interface objects.
PySide6.QtWidgets.QCheckBoxThe QCheckBox widget provides a checkbox with a text label.
PySide6.QtWidgets.QComboBoxThe QComboBox widget is a combined button and popup list.
PySide6.QtWidgets.QCommandLinkButtonThe QCommandLinkButton widget provides a Vista style command link button.
PySide6.QtWidgets.QDateTimeEditThe QDateTimeEdit class provides a widget for editing dates and times.
PySide6.QtWidgets.QTimeEditThe QTimeEdit class provides a widget for editing times based on the QDateTimeEdit widget.
PySide6.QtWidgets.QDateEditThe QDateEdit class provides a widget for editing dates based on the QDateTimeEdit widget.
PySide6.QtWidgets.QDialThe QDial class provides a rounded range control (like a speedometer or potentiometer).
PySide6.QtWidgets.QFocusFrameThe QFocusFrame widget provides a focus frame which can be outside of a widget’s normal paintable area.
PySide6.QtWidgets.QFontComboBoxThe QFontComboBox widget is a combobox that lets the user select a font family.
PySide6.QtWidgets.QLabelThe QLabel widget provides a text or image display.
PySide6.QtWidgets.QLCDNumberThe QLCDNumber widget displays a number with LCD-like digits.
PySide6.QtWidgets.QLineEditThe QLineEdit widget is a one-line text editor.
PySide6.QtWidgets.QMenuThe QMenu class provides a menu widget for use in menu bars, context menus, and other popup menus.
PySide6.QtWidgets.QProgressBarThe QProgressBar widget provides a horizontal or vertical progress bar.
PySide6.QtWidgets.QPushButtonThe QPushButton widget provides a command button.
PySide6.QtWidgets.QRadioButtonThe QRadioButton widget provides a radio button with a text label.
PySide6.QtWidgets.QScrollAreaThe QScrollArea class provides a scrolling view onto another widget.
PySide6.QtWidgets.QScrollBarThe QScrollBar widget provides a vertical or horizontal scroll bar.
PySide6.QtWidgets.QSizeGripThe QSizeGrip class provides a resize handle for resizing top-level windows.
PySide6.QtWidgets.QSliderThe QSlider widget provides a vertical or horizontal slider.
PySide6.QtWidgets.QSpinBoxThe QSpinBox class provides a spin box widget.
PySide6.QtWidgets.QDoubleSpinBoxThe QDoubleSpinBox class provides a spin box widget that takes doubles.
PySide6.QtWidgets.QTabBarThe QTabBar class provides a tab bar, e.g. for use in tabbed dialogs.
PySide6.QtWidgets.QTabWidgetThe QTabWidget class provides a stack of tabbed widgets.
PySide6.QtWidgets.QToolBoxThe QToolBox class provides a column of tabbed widget items.
PySide6.QtWidgets.QToolButtonThe QToolButton class provides a quick-access button to commands or options, usually used inside a QToolBar.
Advanced Widget Classes#
Advanced GUI widgets, e.g. tab widgets and progress bars, provide more complex user interface controls.
![]()
![]()
![]()
PySide6.QtWidgets.QColumnViewThe QColumnView class provides a model/view implementation of a column view.
PySide6.QtWidgets.QDataWidgetMapperThe QDataWidgetMapper class provides mapping between a section of a data model to widgets.
PySide6.QtWidgets.QListViewThe QListView class provides a list or icon view onto a model.
PySide6.QtWidgets.QTableViewThe QTableView class provides a default model/view implementation of a table view.
PySide6.QtWidgets.QTreeViewThe QTreeView class provides a default model/view implementation of a tree view.
PySide6.QtWidgets.QUndoViewThe QUndoView class displays the contents of a QUndoStack.
PySide6.QtWidgets.QCalendarWidgetThe QCalendarWidget class provides a monthly based calendar widget allowing the user to select a date.
Abstract Widget Classes#
The abstract widget classes are base classes. They are not usable as standalone classes but provide functionality when they are subclassed.
PySide6.QtWidgets.QDialogThe QDialog class is the base class of dialog windows.
PySide6.QtWidgets.QAbstractButtonThe QAbstractButton class is the abstract base class of button widgets, providing functionality common to buttons.
PySide6.QtWidgets.QAbstractScrollAreaThe QAbstractScrollArea widget provides a scrolling area with on-demand scroll bars.
PySide6.QtWidgets.QAbstractSliderThe QAbstractSlider class provides an integer value within a range.
PySide6.QtWidgets.QAbstractSpinBoxThe QAbstractSpinBox class provides a spinbox and a line edit to display values.
PySide6.QtWidgets.QFrameThe QFrame class is the base class of widgets that can have a frame.
Organizer Widget Classes#
Classes like splitters, tab bars, button groups, etc are used for organizing and grouping GUI primitives into more complex applications and dialogs.
PySide6.QtWidgets.QButtonGroupThe QButtonGroup class provides a container to organize groups of button widgets.
PySide6.QtWidgets.QGroupBoxThe QGroupBox widget provides a group box frame with a title.
PySide6.QtWidgets.QSplitterHandleThe QSplitterHandle class provides handle functionality for the splitter.
PySide6.QtWidgets.QSplitterThe QSplitter class implements a splitter widget.
PySide6.QtWidgets.QStackedWidgetThe QStackedWidget class provides a stack of widgets where only one widget is visible at a time.
PySide6.QtWidgets.QTabWidgetThe QTabWidget class provides a stack of tabbed widgets.
Graphics View Classes#
PySide6.QtWidgets.QGraphicsEffectThe QGraphicsEffect class is the base class for all graphics effects.
PySide6.QtWidgets.QGraphicsAnchorLayoutThe QGraphicsAnchorLayout class provides a layout where one can anchor widgets together in Graphics View.
PySide6.QtWidgets.QGraphicsAnchorThe QGraphicsAnchor class represents an anchor between two items in a QGraphicsAnchorLayout.
PySide6.QtWidgets.QGraphicsGridLayoutThe QGraphicsGridLayout class provides a grid layout for managing widgets in Graphics View.
PySide6.QtWidgets.QGraphicsItemThe QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
PySide6.QtWidgets.QGraphicsObjectThe QGraphicsObject class provides a base class for all graphics items that require signals, slots and properties.
PySide6.QtWidgets.QAbstractGraphicsShapeItemThe QAbstractGraphicsShapeItem class provides a common base for all path items.
PySide6.QtWidgets.QGraphicsPathItemThe QGraphicsPathItem class provides a path item that you can add to a QGraphicsScene.
PySide6.QtWidgets.QGraphicsRectItemThe QGraphicsRectItem class provides a rectangle item that you can add to a QGraphicsScene.
PySide6.QtWidgets.QGraphicsEllipseItemThe QGraphicsEllipseItem class provides an ellipse item that you can add to a QGraphicsScene.
PySide6.QtWidgets.QGraphicsPolygonItemThe QGraphicsPolygonItem class provides a polygon item that you can add to a QGraphicsScene.
PySide6.QtWidgets.QGraphicsLineItemThe QGraphicsLineItem class provides a line item that you can add to a QGraphicsScene.
PySide6.QtWidgets.QGraphicsPixmapItemThe QGraphicsPixmapItem class provides a pixmap item that you can add to a QGraphicsScene.
PySide6.QtWidgets.QGraphicsTextItemThe QGraphicsTextItem class provides a text item that you can add to a QGraphicsScene to display formatted text.
PySide6.QtWidgets.QGraphicsSimpleTextItemThe QGraphicsSimpleTextItem class provides a simple text path item that you can add to a QGraphicsScene.
PySide6.QtWidgets.QGraphicsItemGroupThe QGraphicsItemGroup class provides a container that treats a group of items as a single item.
PySide6.QtWidgets.QGraphicsItemAnimationThe QGraphicsItemAnimation class provides simple animation support for QGraphicsItem.
PySide6.QtWidgets.QGraphicsLayoutThe QGraphicsLayout class provides the base class for all layouts in Graphics View.
PySide6.QtWidgets.QGraphicsLayoutItemThe QGraphicsLayoutItem class can be inherited to allow your custom items to be managed by layouts.
PySide6.QtWidgets.QGraphicsLinearLayoutThe QGraphicsLinearLayout class provides a horizontal or vertical layout for managing widgets in Graphics View.
PySide6.QtWidgets.QGraphicsProxyWidgetThe QGraphicsProxyWidget class provides a proxy layer for embedding a QWidget in a QGraphicsScene.
PySide6.QtWidgets.QGraphicsSceneThe QGraphicsScene class provides a surface for managing a large number of 2D graphical items.
The QGraphicsSceneBspTreeIndex class provides an implementation of a BSP indexing algorithm for discovering items in QGraphicsScene.
PySide6.QtWidgets.QGraphicsSceneEventThe QGraphicsSceneEvent class provides a base class for all graphics view related events.
PySide6.QtWidgets.QGraphicsSceneMouseEventThe QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
PySide6.QtWidgets.QGraphicsSceneWheelEventThe QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.
PySide6.QtWidgets.QGraphicsSceneContextMenuEventThe QGraphicsSceneContextMenuEvent class provides context menu events in the graphics view framework.
PySide6.QtWidgets.QGraphicsSceneHoverEventThe QGraphicsSceneHoverEvent class provides hover events in the graphics view framework.
PySide6.QtWidgets.QGraphicsSceneHelpEventThe QGraphicsSceneHelpEvent class provides events when a tooltip is requested.
PySide6.QtWidgets.QGraphicsSceneDragDropEventThe QGraphicsSceneDragDropEvent class provides events for drag and drop in the graphics view framework.
PySide6.QtWidgets.QGraphicsSceneResizeEventThe QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framework.
PySide6.QtWidgets.QGraphicsSceneMoveEventThe QGraphicsSceneMoveEvent class provides events for widget moving in the graphics view framework.
The QGraphicsSceneIndex class provides a base class to implement a custom indexing algorithm for discovering items in QGraphicsScene.
The QGraphicsSceneLinearIndex class provides an implementation of a linear indexing algorithm for discovering items in QGraphicsScene.
PySide6.QtWidgets.QGraphicsTransformThe QGraphicsTransform class is an abstract base class for building advanced transformations on QGraphicsItems.
PySide6.QtWidgets.QGraphicsViewThe QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene.
PySide6.QtWidgets.QGraphicsWidgetThe QGraphicsWidget class is the base class for all widget items in a QGraphicsScene.
PySide6.QtWidgets.QStyleOptionGraphicsItemThe QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem.
Model/View Classes#
PySide6.QtWidgets.QAbstractItemDelegateThe QAbstractItemDelegate class is used to display and edit data items from a model.
PySide6.QtWidgets.QAbstractItemViewThe QAbstractItemView class provides the basic functionality for item view classes.
PySide6.QtWidgets.QColumnViewThe QColumnView class provides a model/view implementation of a column view.
PySide6.QtWidgets.QDataWidgetMapperThe QDataWidgetMapper class provides mapping between a section of a data model to widgets.
PySide6.QtWidgets.QHeaderViewThe QHeaderView class provides a header row or header column for item views.
PySide6.QtWidgets.QItemDelegateThe QItemDelegate class provides display and editing facilities for data items from a model.
PySide6.QtWidgets.QItemEditorFactoryThe QItemEditorFactory class provides widgets for editing item data in views and delegates.
PySide6.QtWidgets.QItemEditorCreatorBaseThe QItemEditorCreatorBase class provides an abstract base class that must be subclassed when implementing new item editor creators.
QItemEditorCreatorThe QItemEditorCreator class makes it possible to create item editor creator bases without subclassing QItemEditorCreatorBase.
QStandardItemEditorCreatorThe QStandardItemEditorCreator class provides the possibility to register widgets without having to subclass QItemEditorCreatorBase.
PySide6.QtWidgets.QListViewThe QListView class provides a list or icon view onto a model.
PySide6.QtWidgets.QListWidgetItemThe QListWidgetItem class provides an item for use with the QListWidget item view class.
PySide6.QtWidgets.QListWidgetThe QListWidget class provides an item-based list widget.
PySide6.QtWidgets.QStyledItemDelegateThe QStyledItemDelegate class provides display and editing facilities for data items from a model.
PySide6.QtWidgets.QTableViewThe QTableView class provides a default model/view implementation of a table view.
PySide6.QtWidgets.QTableWidgetSelectionRangeThe QTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model.
PySide6.QtWidgets.QTableWidgetItemThe QTableWidgetItem class provides an item for use with the QTableWidget class.
PySide6.QtWidgets.QTableWidgetThe QTableWidget class provides an item-based table view with a default model.
PySide6.QtWidgets.QTreeViewThe QTreeView class provides a default model/view implementation of a tree view.
PySide6.QtWidgets.QTreeWidgetItemThe QTreeWidgetItem class provides an item for use with the QTreeWidget convenience class.
PySide6.QtWidgets.QTreeWidgetThe QTreeWidget class provides a tree view that uses a predefined tree model.
PySide6.QtWidgets.QTreeWidgetItemIteratorThe QTreeWidgetItemIterator class provides a way to iterate over the items in a QTreeWidget instance.
Layout Classes#
PySide6.QtWidgets.QGraphicsAnchorLayoutThe QGraphicsAnchorLayout class provides a layout where one can anchor widgets together in Graphics View.
PySide6.QtWidgets.QGraphicsAnchorThe QGraphicsAnchor class represents an anchor between two items in a QGraphicsAnchorLayout.
PySide6.QtWidgets.QBoxLayoutThe QBoxLayout class lines up child widgets horizontally or vertically.
PySide6.QtWidgets.QHBoxLayoutThe QHBoxLayout class lines up widgets horizontally.
PySide6.QtWidgets.QVBoxLayoutThe QVBoxLayout class lines up widgets vertically.
PySide6.QtWidgets.QFormLayoutThe QFormLayout class manages forms of input widgets and their associated labels.
PySide6.QtWidgets.QGridLayoutThe QGridLayout class lays out widgets in a grid.
PySide6.QtWidgets.QLayoutThe QLayout class is the base class of geometry managers.
PySide6.QtWidgets.QLayoutItemThe QLayoutItem class provides an abstract item that a QLayout manipulates.
PySide6.QtWidgets.QSpacerItemThe QSpacerItem class provides blank space in a layout.
PySide6.QtWidgets.QWidgetItemThe QWidgetItem class is a layout item that represents a widget.
PySide6.QtWidgets.QSizePolicyThe QSizePolicy class is a layout attribute describing horizontal and vertical resizing policy.
PySide6.QtWidgets.QStackedLayoutThe QStackedLayout class provides a stack of widgets where only one widget is visible at a time.
PySide6.QtWidgets.QButtonGroupThe QButtonGroup class provides a container to organize groups of button widgets.
PySide6.QtWidgets.QGroupBoxThe QGroupBox widget provides a group box frame with a title.
PySide6.QtWidgets.QStackedWidgetThe QStackedWidget class provides a stack of widgets where only one widget is visible at a time.