Widgets Classes | Qt Widgets (original) (raw)
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.
QCheckBox | Checkbox with a text label |
---|---|
QComboBox | Combines a button with a dropdown list |
QCommandLinkButton | Vista style command link button |
QDateEdit | Widget for editing dates based on the QDateTimeEdit widget |
QDateTimeEdit | Widget for editing dates and times |
QDial | Rounded range control (like a speedometer or potentiometer) |
QDoubleSpinBox | Spin box widget that takes doubles |
QFocusFrame | Focus frame which can be outside of a widget's normal paintable area |
QFontComboBox | Combobox that lets the user select a font family |
QLCDNumber | Displays a number with LCD-like digits |
QLabel | Text or image display |
QLineEdit | One-line text editor |
QMenu | Menu widget for use in menu bars, context menus, and other popup menus |
QProgressBar | Horizontal or vertical progress bar |
QPushButton | Command button |
QRadioButton | Radio button with a text label |
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 |
QSpinBox | Spin box widget |
QTabBar | Tab bar, e.g. for use in tabbed dialogs |
QTabWidget | Stack of tabbed widgets |
QTimeEdit | Widget for editing times based on the QDateTimeEdit widget |
QToolBox | Column of tabbed widget items |
QToolButton | Quick-access button to commands or options, usually used inside a QToolBar |
QWidget | The base class of all user interface objects |
Advanced Widget Classes
Advanced GUI widgets, e.g. tab widgets and progress bars, provide more complex user interface controls.
QCalendarWidget | Monthly based calendar widget allowing the user to select a date |
---|---|
QColumnView | Model/view implementation of a column view |
QDataWidgetMapper | Mapping between a section of a data model to widgets |
QListView | List or icon view onto a model |
QTableView | Default model/view implementation of a table view |
QTreeView | Default model/view implementation of a tree view |
QUndoView | Displays the contents of a QUndoStack |
Abstract Widget Classes
The abstract widget classes are base classes. They are not usable as standalone classes but provide functionality when they are subclassed.
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.
Graphics View Classes
Model/View Classes
Main Window and Related Classes
QDockWidget | Widget that can be docked inside a QMainWindow or floated as a top-level window on the desktop |
---|---|
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 |
QSizeGrip | Resize handle for resizing top-level windows |
QStatusBar | Horizontal bar suitable for presenting status information |
QToolBar | Movable panel that contains a set of controls |
QWidgetAction | Extends QAction by an interface for inserting custom widgets into action based containers, such as toolbars |
Widget Appearance and Style-Related Classes
Classes used for customizing UI appearance and style.