Widgets Classes
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.
The base class of all user interface objects | |
Checkbox with a text label | |
Combined button and popup list | |
Vista style command link button | |
Widget for editing dates and times | |
Widget for editing times based on the QDateTimeEdit widget | |
Widget for editing dates based on the QDateTimeEdit widget | |
Rounded range control (like a speedometer or potentiometer) | |
Focus frame which can be outside of a widget's normal paintable area | |
Combobox that lets the user select a font family | |
Text or image display | |
Displays a number with LCD-like digits | |
One-line text editor | |
Menu widget for use in menu bars, context menus, and other popup menus | |
Horizontal or vertical progress bar | |
Command button | |
Radio button with a text label | |
Scrolling view onto another widget | |
Vertical or horizontal scroll bar | |
Resize handle for resizing top-level windows | |
Vertical or horizontal slider | |
Spin box widget | |
Spin box widget that takes doubles | |
Tab bar, e.g. for use in tabbed dialogs | |
Stack of tabbed widgets | |
Column of tabbed widget items | |
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.
Model/view implementation of a column view | |
Mapping between a section of a data model to widgets | |
List or icon view onto a model | |
Default model/view implementation of a table view | |
Default model/view implementation of a tree view | |
Access to screen information on multi-head systems | |
Displays the contents of a QUndoStack | |
Monthly based calendar widget allowing the user to select a date | |
Widget for Mac OS X that can be used to wrap arbitrary Cocoa views (i.e., NSView subclasses) and insert them into Qt hierarchies | |
Widget for Mac OS X that provides a way to put Qt widgets into Cocoa hierarchies |
Abstract Widget Classes
The abstract widget classes are base classes. They are not usable as standalone classes but provide functionality when they are subclassed.
The base class of dialog windows | |
The abstract base class of button widgets, providing functionality common to buttons | |
Scrolling area with on-demand scroll bars | |
Integer value within a range | |
Spinbox and a line edit to display values | |
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.
Container to organize groups of button widgets | |
Group box frame with a title | |
Handle functionality for the splitter | |
Implements a splitter widget | |
Stack of widgets where only one widget is visible at a time | |
Stack of tabbed widgets |
Graphics View Classes
The base class for all graphics effects | |
Layout where one can anchor widgets together in Graphics View | |
Represents an anchor between two items in a QGraphicsAnchorLayout | |
Grid layout for managing widgets in Graphics View | |
The base class for all graphical items in a QGraphicsScene | |
Base class for all graphics items that require signals, slots and properties | |
Common base for all path items | |
Path item that you can add to a QGraphicsScene | |
Rectangle item that you can add to a QGraphicsScene | |
Ellipse item that you can add to a QGraphicsScene | |
Polygon item that you can add to a QGraphicsScene | |
Line item that you can add to a QGraphicsScene | |
Pixmap item that you can add to a QGraphicsScene | |
Text item that you can add to a QGraphicsScene to display formatted text | |
Simple text path item that you can add to a QGraphicsScene | |
Container that treats a group of items as a single item | |
The base class for all layouts in Graphics View | |
Can be inherited to allow your custom items to be managed by layouts | |
Horizontal or vertical layout for managing widgets in Graphics View | |
Proxy layer for embedding a QWidget in a QGraphicsScene | |
Surface for managing a large number of 2D graphical items | |
Base class for all graphics view related events | |
Mouse events in the graphics view framework | |
Wheel events in the graphics view framework | |
Context menu events in the graphics view framework | |
Hover events in the graphics view framework | |
Events when a tooltip is requested | |
Events for drag and drop in the graphics view framework | |
Events for widget resizing in the graphics view framework | |
Events for widget moving in the graphics view framework | |
Abstract base class for building advanced transformations on QGraphicsItems | |
Widget for displaying the contents of a QGraphicsScene | |
The base class for all widget items in a QGraphicsScene | |
Used to describe the parameters needed to draw a QGraphicsItem |
Model/View Classes
The QAbstractItemModel class provides the abstract interface for item model classes. | |
The QAbstractListModel class provides an abstract model that can be subclassed to create one-dimensional list models. | |
The QAbstractTableModel class provides an abstract model that can be subclassed to create table models. | |
The QModelIndex class is used to locate data in a data model. | |
The QPersistentModelIndex class is used to locate data in a data model. | |
The QAbstractProxyModel class provides a base class for proxy item models that can do sorting, filtering or other data processing tasks. | |
The QIdentityProxyModel class proxies its source model unmodified | |
The QItemSelection class manages information about selected items in a model. | |
The QItemSelectionModel class keeps track of a view's selected items. | |
The QItemSelectionRange class manages information about a range of selected items in a model. | |
The QSortFilterProxyModel class provides support for sorting and filtering data passed between another model and a view. | |
The QStringListModel class provides a model that supplies strings to views. | |
The QStandardItem class provides an item for use with the QStandardItemModel class. | |
The QStandardItemModel class provides a generic model for storing custom data. | |
Data model for the local filesystem | |
Used to display and edit data items from a model | |
The basic functionality for item view classes | |
Model/view implementation of a column view | |
Mapping between a section of a data model to widgets | |
Header row or header column for item views | |
Display and editing facilities for data items from a model | |
Widgets for editing item data in views and delegates | |
Abstract base class that must be subclassed when implementing new item editor creators | |
Makes it possible to create item editor creator bases without subclassing QItemEditorCreatorBase | |
The possibility to register widgets without having to subclass QItemEditorCreatorBase | |
List or icon view onto a model | |
Item for use with the QListWidget item view class | |
Item-based list widget | |
Display and editing facilities for data items from a model | |
Default model/view implementation of a table view | |
Way to interact with selection in a model without using model indexes and a selection model | |
Item for use with the QTableWidget class | |
Item-based table view with a default model | |
Default model/view implementation of a tree view | |
Item for use with the QTreeWidget convenience class | |
Tree view that uses a predefined tree model | |
Way to iterate over the items in a QTreeWidget instance |
Main Window and Related Classes
Abstract user interface action that can be inserted into widgets | |
Groups actions together | |
Extends QAction by an interface for inserting custom widgets into action based containers, such as toolbars | |
Widget that can be docked inside a QMainWindow or floated as a top-level window on the desktop | |
Main application window | |
Area in which MDI windows are displayed | |
Subwindow class for QMdiArea | |
Menu widget for use in menu bars, context menus, and other popup menus | |
Horizontal menu bar | |
Resize handle for resizing top-level windows | |
Horizontal bar suitable for presenting status information | |
Movable panel that contains a set of controls |
Widget Appearance and Style-Related Classes
Classes used for customizing UI appearance and style.
The QCursor class provides a mouse cursor with an arbitrary shape. | |
The QPalette class contains color groups for each widget state. | |
The QColor class provides colors based on RGB, HSV or CMYK values. | |
The QFont class specifies a font used for drawing text. | |
The QFontDatabase class provides information about the fonts available in the underlying window system. | |
The QFontInfo class provides general information about fonts. | |
Layout where one can anchor widgets together in Graphics View | |
Represents an anchor between two items in a QGraphicsAnchorLayout | |
Encapsulates the common Look and Feel of a GUI | |
Abstract base class that encapsulates the look and feel of a GUI | |
Creates QStyle objects | |
Stores the parameters used by QStyle functions | |
Style hints that return more than basic data types | |
Style hints that return a QRegion | |
Style hints that return a QVariant | |
Convenience class for drawing QStyle elements inside a widget |
Layout Classes
Layout where one can anchor widgets together in Graphics View | |
Represents an anchor between two items in a QGraphicsAnchorLayout | |
Lines up child widgets horizontally or vertically | |
Lines up widgets horizontally | |
Lines up widgets vertically | |
Manages forms of input widgets and their associated labels | |
Lays out widgets in a grid | |
The base class of geometry managers | |
Abstract item that a QLayout manipulates | |
Blank space in a layout | |
Layout item that represents a widget | |
Layout attribute describing horizontal and vertical resizing policy | |
Stack of widgets where only one widget is visible at a time | |
Container to organize groups of button widgets | |
Group box frame with a title | |
Stack of widgets where only one widget is visible at a time |