Wiki Markup |
---|
{alias:qsetcentralwidget}
h2. Name
*qsetcentralwidget* — set central widget in a QMainWindow
h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#FFFFAA}
*qsetcentralwidget* _mainwindow_ \[_widget_]
{panel}
h2. Description
The *qsetcentralwidget* command assigns a widget to be the central widget in a [QMainWindow]. Occupying the main central area of the mainwindow, the central widget is usually placed below a menubar and toolbar, while also being surrounded by dock areas. There may be only one central widget.
The central widget is typically a [QTextEdit] or a container widget like [QTabWidget]. No layout management should be performed for the central widget.
h2. Arguments
{indent}
h2. Examples
See the [qmainwindow] command for examples on how to use the *qsetcentralwidget* command.
{pagebreak} |
Name
qsetcentralwidget — set central widget in a QMainWindow
Syntax
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
qsetcentralwidget mainwindow [widget] |
Description
The qsetcentralwidget command assigns a widget to be the central widget in a QMainWindow. Occupying the main central area of the mainwindow, the central widget is usually placed below a menubar and toolbar, while also being surrounded by dock areas. There may be only one central widget.
The central widget is typically a QTextEdit or a container widget like QTabWidget. No layout management should be performed for the central widget.
Arguments
Examples
See the qmainwindow command for examples on how to use the qsetcentralwidget command.