6.0.0-rc4Source

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

QAbstractButtonThe QAbstractButton class is the abstract base class of button widgets.
QAbstractItemDelegateThe QAbstractItemDelegate class is used to display and edit data items from a model.
QAbstractItemViewThe QAbstractItemView class provides the basic functionality for item view classes.
QAbstractScrollAreaThe QAbstractScrollArea class is the base class of widgets that scroll their contents.
QAbstractSliderThe QAbstractSlider class is the base of the widgets that pick an integer value from a range.
QAbstractSpinBoxThe QAbstractSpinBox class is the base of the widgets that show a value in a text with two buttons that step it.
QApplicationThe QApplication class manages the GUI application's control flow and main settings.
QBoxLayoutThe QBoxLayout class lines up child widgets horizontally or vertically.
QButtonGroupThe QButtonGroup class organizes buttons that belong together, such as a choice of radio buttons.
QCalendarWidgetThe QCalendarWidget class shows a month and lets the user pick a date.
QCheckBoxThe QCheckBox class provides a checkbox with a text label.
QColorDialogThe QColorDialog class lets the user choose a color.
QComboBoxThe QComboBox class is a button that drops down a list of items to choose from.
QCommandLinkButtonThe QCommandLinkButton class provides a large flat button with an arrow, a title and a description.
QCompleterThe QCompleter class completes what the user types from a list of words.
QDateEditThe QDateEdit class lets the user edit a date.
QDateTimeEditThe QDateTimeEdit class lets the user edit a date and a time.
QDialThe QDial class provides a round knob that picks a value from a range.
QDialogThe QDialog class is the base class of dialog windows.
QDialogButtonBoxThe QDialogButtonBox class lays out the buttons of a dialog in the order of the platform.
QDockWidgetThe QDockWidget class provides a panel that sits at a side of a QMainWindow or floats as a window.
QDoubleSpinBoxThe QDoubleSpinBox class lets the user pick a floating-point number by typing it or stepping with two buttons.
QErrorMessageThe QErrorMessage class shows error messages that the user can choose not to see again.
QFileDialogThe QFileDialog class lets the user choose files or a directory.
QFocusFrameThe QFocusFrame class draws a frame around a widget, outside it.
QFontComboBoxThe QFontComboBox class lets the user choose a font family from a list.
QFontDialogThe QFontDialog class lets the user choose a font.
QFormLayoutThe QFormLayout class lays out a form of labels and fields.
QFrameThe QFrame class is the base class of widgets that can have a frame.
QGridLayoutThe QGridLayout class lays out widgets in a grid of rows and columns.
QGroupBoxThe QGroupBox class is a frame with a title that groups other widgets.
QHBoxLayoutThe QHBoxLayout class lines up widgets horizontally.
QHeaderViewThe QHeaderView class provides the row or column headers of a table.
QInputDialogThe QInputDialog class asks the user for a single value: a text, an item of a list, or a number.
QKeySequenceEditThe QKeySequenceEdit class lets the user enter a key sequence, such as a shortcut.
QLCDNumberThe QLCDNumber class shows a number with digits that look like those of a calculator.
QLabelThe QLabel class displays text.
QLayoutThe QLayout class is the base class of geometry managers.
QLayoutItemThe QLayoutItem class provides an abstract item that a QLayout manipulates.
QLineEditThe QLineEdit class is a one-line text editor.
QListWidgetThe QListWidget class provides a list of items, one on each row.
QListWidgetItemThe QListWidgetItem class is a row of a QListWidget.
QMainWindowThe QMainWindow class provides the main window of an application.
QMdiAreaThe QMdiArea class provides an area in which sub-windows are shown, for an application with many documents.
QMdiSubWindowThe QMdiSubWindow class is a window inside a QMdiArea.
QMenuThe QMenu class provides a menu: a list of actions to choose from.
QMenuBarThe QMenuBar class provides a row of menu titles, usually at the top of a window.
QMessageBoxThe QMessageBox class shows a message and asks the user to answer with a button.
QPlainTextEditThe QPlainTextEdit class is an editor for text of many lines.
QProgressBarThe QProgressBar class shows how far an operation has come.
QProgressDialogThe QProgressDialog class shows the progress of a long task and lets the user cancel it.
QPushButtonThe QPushButton class provides a command button.
QRadioButtonThe QRadioButton class provides a radio button with a text label.
QRubberBandThe QRubberBand class draws a rectangle or a line that shows a selection or a new position.
QScrollAreaThe QScrollArea class provides a scrolling view of another widget.
QScrollBarThe QScrollBar class provides a bar that scrolls the contents of a widget.
QSizeGripThe QSizeGrip class provides a corner handle for resizing a window.
QSizePolicyThe QSizePolicy class is a layout attribute describing horizontal and vertical resizing policy.
QSliderThe QSlider class provides a slider that picks a value from a range.
QSpacerItemThe QSpacerItem class provides blank space in a layout.
QSpinBoxThe QSpinBox class lets the user pick an integer by typing it or stepping with two buttons.
QSplashScreenThe QSplashScreen class shows a picture while the application starts.
QSplitterThe QSplitter class lets the user change the sizes of the widgets in it by dragging the bars between them.
QStackedLayoutThe QStackedLayout class lays out widgets so that only one of them is visible at a time.
QStackedWidgetThe QStackedWidget class is a stack of widgets of which only one is visible at a time.
QStatusBarThe QStatusBar class is a bar for messages and small widgets at the bottom of a window.
QStyleThe QStyle class is an abstract base class that encapsulates the look and feel of a GUI.
QStyleFactoryThe QStyleFactory class creates QStyle objects.
QStyleOptionThe QStyleOption class stores the parameters that QStyle functions use to draw.
QStyleOptionButtonThe QStyleOptionButton class describes the parameters for drawing buttons.
QStyleOptionComboBoxThe QStyleOptionComboBox class describes the parameters for drawing a combo box.
QStyleOptionFrameThe QStyleOptionFrame class describes the parameters for drawing a frame.
QStyleOptionGroupBoxThe QStyleOptionGroupBox class describes the parameters for drawing a group box.
QStyleOptionHeaderThe QStyleOptionHeader class describes the parameters for drawing one section of a header.
QStyleOptionMenuItemThe QStyleOptionMenuItem class describes the parameters for drawing an entry of a menu, or a title of a menu bar.
QStyleOptionProgressBarThe QStyleOptionProgressBar class describes the parameters for drawing a progress bar.
QStyleOptionSliderThe QStyleOptionSlider class describes the parameters for drawing a slider.
QStyleOptionSpinBoxThe QStyleOptionSpinBox class describes the parameters for drawing a spin box.
QStyleOptionTabThe QStyleOptionTab class describes the parameters for drawing a tab of a tab bar.
QStyleOptionViewItemThe QStyleOptionViewItem class describes how an item of an item view is drawn.
QStyledItemDelegateThe QStyledItemDelegate class provides display and editing facilities for data items from a model.
QTabBarThe QTabBar class provides a row of tabs.
QTabWidgetThe QTabWidget class is a stack of pages with a row of tabs to choose the page.
QTableWidgetThe QTableWidget class provides a table of items.
QTableWidgetItemThe QTableWidgetItem class is a cell of a QTableWidget.
QTextBrowserThe QTextBrowser class shows documents that the user can go back and forward through.
QTextCursorThe QTextCursor class is a position in the text of a QPlainTextEdit, with a selection, which can move and change the text.
QTextEditThe QTextEdit class shows rich text, and edits plain text.
QTimeEditThe QTimeEdit class lets the user edit a time.
QToolBarThe QToolBar class provides a bar of buttons for actions.
QToolBoxThe QToolBox class provides a column of items, one of which shows its widget at a time.
QToolButtonThe QToolButton class is a small button for a command, usually with a short text or an arrow.
QToolTipThe QToolTip class shows a text in a small label next to the mouse.
QTreeViewThe QTreeView class provides a default model/view implementation of a tree view.
QTreeWidgetThe QTreeWidget class provides a tree view that uses a predefined tree model.
QTreeWidgetItemThe QTreeWidgetItem class provides an item for use with the QTreeWidget convenience class.
QVBoxLayoutThe QVBoxLayout class lines up widgets vertically.
QWidgetThe QWidget class is the base class of all user interface objects.
QWidgetActionThe QWidgetAction class is an action that a widget stands for in a tool bar.
QWidgetItemThe QWidgetItem class is a layout item that represents a widget.
QWizardThe QWizard class leads the user through a task in a sequence of pages.
QWizardPageThe QWizardPage class is a page of a QWizard.