Nt Widgets C++ Classes
Widgets, layouts and styles for desktop user interfaces.
Using the Module
target_link_libraries(app PRIVATE Nt::Widgets)
Nt Widgets builds user interfaces from widgets: QWidget and its subclasses such as QLabel, QPushButton and QCheckBox, arranged by layouts (QVBoxLayout, QHBoxLayout) and drawn by a QStyle. Create a QApplication, then a window, add widgets to it, and show it. See Using Nt Widgets.
Link with Nt::Widgets and include <QApplication> and the widget headers you use.
Classes
| QAbstractButton | The QAbstractButton class is the abstract base class of button widgets. |
| QAbstractItemDelegate | The QAbstractItemDelegate class is used to display and edit data items from a model. |
| QAbstractItemView | The QAbstractItemView class provides the basic functionality for item view classes. |
| QAbstractScrollArea | The QAbstractScrollArea class is the base class of widgets that scroll their contents. |
| QAbstractSlider | The QAbstractSlider class is the base of the widgets that pick an integer value from a range. |
| QAbstractSpinBox | The QAbstractSpinBox class is the base of the widgets that show a value in a text with two buttons that step it. |
| QApplication | The QApplication class manages the GUI application's control flow and main settings. |
| QBoxLayout | The QBoxLayout class lines up child widgets horizontally or vertically. |
| QButtonGroup | The QButtonGroup class organizes buttons that belong together, such as a choice of radio buttons. |
| QCalendarWidget | The QCalendarWidget class shows a month and lets the user pick a date. |
| QCheckBox | The QCheckBox class provides a checkbox with a text label. |
| QColorDialog | The QColorDialog class lets the user choose a color. |
| QComboBox | The QComboBox class is a button that drops down a list of items to choose from. |
| QCommandLinkButton | The QCommandLinkButton class provides a large flat button with an arrow, a title and a description. |
| QCompleter | The QCompleter class completes what the user types from a list of words. |
| QDateEdit | The QDateEdit class lets the user edit a date. |
| QDateTimeEdit | The QDateTimeEdit class lets the user edit a date and a time. |
| QDial | The QDial class provides a round knob that picks a value from a range. |
| QDialog | The QDialog class is the base class of dialog windows. |
| QDialogButtonBox | The QDialogButtonBox class lays out the buttons of a dialog in the order of the platform. |
| QDockWidget | The QDockWidget class provides a panel that sits at a side of a QMainWindow or floats as a window. |
| QDoubleSpinBox | The QDoubleSpinBox class lets the user pick a floating-point number by typing it or stepping with two buttons. |
| QErrorMessage | The QErrorMessage class shows error messages that the user can choose not to see again. |
| QFileDialog | The QFileDialog class lets the user choose files or a directory. |
| QFocusFrame | The QFocusFrame class draws a frame around a widget, outside it. |
| QFontComboBox | The QFontComboBox class lets the user choose a font family from a list. |
| QFontDialog | The QFontDialog class lets the user choose a font. |
| QFormLayout | The QFormLayout class lays out a form of labels and fields. |
| QFrame | The QFrame class is the base class of widgets that can have a frame. |
| QGridLayout | The QGridLayout class lays out widgets in a grid of rows and columns. |
| QGroupBox | The QGroupBox class is a frame with a title that groups other widgets. |
| QHBoxLayout | The QHBoxLayout class lines up widgets horizontally. |
| QHeaderView | The QHeaderView class provides the row or column headers of a table. |
| QInputDialog | The QInputDialog class asks the user for a single value: a text, an item of a list, or a number. |
| QKeySequenceEdit | The QKeySequenceEdit class lets the user enter a key sequence, such as a shortcut. |
| QLCDNumber | The QLCDNumber class shows a number with digits that look like those of a calculator. |
| QLabel | The QLabel class displays text. |
| QLayout | The QLayout class is the base class of geometry managers. |
| QLayoutItem | The QLayoutItem class provides an abstract item that a QLayout manipulates. |
| QLineEdit | The QLineEdit class is a one-line text editor. |
| QListWidget | The QListWidget class provides a list of items, one on each row. |
| QListWidgetItem | The QListWidgetItem class is a row of a QListWidget. |
| QMainWindow | The QMainWindow class provides the main window of an application. |
| QMdiArea | The QMdiArea class provides an area in which sub-windows are shown, for an application with many documents. |
| QMdiSubWindow | The QMdiSubWindow class is a window inside a QMdiArea. |
| QMenu | The QMenu class provides a menu: a list of actions to choose from. |
| QMenuBar | The QMenuBar class provides a row of menu titles, usually at the top of a window. |
| QMessageBox | The QMessageBox class shows a message and asks the user to answer with a button. |
| QPlainTextEdit | The QPlainTextEdit class is an editor for text of many lines. |
| QProgressBar | The QProgressBar class shows how far an operation has come. |
| QProgressDialog | The QProgressDialog class shows the progress of a long task and lets the user cancel it. |
| QPushButton | The QPushButton class provides a command button. |
| QRadioButton | The QRadioButton class provides a radio button with a text label. |
| QRubberBand | The QRubberBand class draws a rectangle or a line that shows a selection or a new position. |
| QScrollArea | The QScrollArea class provides a scrolling view of another widget. |
| QScrollBar | The QScrollBar class provides a bar that scrolls the contents of a widget. |
| QSizeGrip | The QSizeGrip class provides a corner handle for resizing a window. |
| QSizePolicy | The QSizePolicy class is a layout attribute describing horizontal and vertical resizing policy. |
| QSlider | The QSlider class provides a slider that picks a value from a range. |
| QSpacerItem | The QSpacerItem class provides blank space in a layout. |
| QSpinBox | The QSpinBox class lets the user pick an integer by typing it or stepping with two buttons. |
| QSplashScreen | The QSplashScreen class shows a picture while the application starts. |
| QSplitter | The QSplitter class lets the user change the sizes of the widgets in it by dragging the bars between them. |
| QStackedLayout | The QStackedLayout class lays out widgets so that only one of them is visible at a time. |
| QStackedWidget | The QStackedWidget class is a stack of widgets of which only one is visible at a time. |
| QStatusBar | The QStatusBar class is a bar for messages and small widgets at the bottom of a window. |
| QStyle | The QStyle class is an abstract base class that encapsulates the look and feel of a GUI. |
| QStyleFactory | The QStyleFactory class creates QStyle objects. |
| QStyleOption | The QStyleOption class stores the parameters that QStyle functions use to draw. |
| QStyleOptionButton | The QStyleOptionButton class describes the parameters for drawing buttons. |
| QStyleOptionComboBox | The QStyleOptionComboBox class describes the parameters for drawing a combo box. |
| QStyleOptionFrame | The QStyleOptionFrame class describes the parameters for drawing a frame. |
| QStyleOptionGroupBox | The QStyleOptionGroupBox class describes the parameters for drawing a group box. |
| QStyleOptionHeader | The QStyleOptionHeader class describes the parameters for drawing one section of a header. |
| QStyleOptionMenuItem | The QStyleOptionMenuItem class describes the parameters for drawing an entry of a menu, or a title of a menu bar. |
| QStyleOptionProgressBar | The QStyleOptionProgressBar class describes the parameters for drawing a progress bar. |
| QStyleOptionSlider | The QStyleOptionSlider class describes the parameters for drawing a slider. |
| QStyleOptionSpinBox | The QStyleOptionSpinBox class describes the parameters for drawing a spin box. |
| QStyleOptionTab | The QStyleOptionTab class describes the parameters for drawing a tab of a tab bar. |
| QStyleOptionViewItem | The QStyleOptionViewItem class describes how an item of an item view is drawn. |
| QStyledItemDelegate | The QStyledItemDelegate class provides display and editing facilities for data items from a model. |
| QTabBar | The QTabBar class provides a row of tabs. |
| QTabWidget | The QTabWidget class is a stack of pages with a row of tabs to choose the page. |
| QTableWidget | The QTableWidget class provides a table of items. |
| QTableWidgetItem | The QTableWidgetItem class is a cell of a QTableWidget. |
| QTextBrowser | The QTextBrowser class shows documents that the user can go back and forward through. |
| QTextCursor | The QTextCursor class is a position in the text of a QPlainTextEdit, with a selection, which can move and change the text. |
| QTextEdit | The QTextEdit class shows rich text, and edits plain text. |
| QTimeEdit | The QTimeEdit class lets the user edit a time. |
| QToolBar | The QToolBar class provides a bar of buttons for actions. |
| QToolBox | The QToolBox class provides a column of items, one of which shows its widget at a time. |
| QToolButton | The QToolButton class is a small button for a command, usually with a short text or an arrow. |
| QToolTip | The QToolTip class shows a text in a small label next to the mouse. |
| QTreeView | The QTreeView class provides a default model/view implementation of a tree view. |
| QTreeWidget | The QTreeWidget class provides a tree view that uses a predefined tree model. |
| QTreeWidgetItem | The QTreeWidgetItem class provides an item for use with the QTreeWidget convenience class. |
| QVBoxLayout | The QVBoxLayout class lines up widgets vertically. |
| QWidget | The QWidget class is the base class of all user interface objects. |
| QWidgetAction | The QWidgetAction class is an action that a widget stands for in a tool bar. |
| QWidgetItem | The QWidgetItem class is a layout item that represents a widget. |
| QWizard | The QWizard class leads the user through a task in a sequence of pages. |
| QWizardPage | The QWizardPage class is a page of a QWizard. |