qsetcentralwidget - set central widget in a QMainWindow

Name

qsetcentralwidget — set central widget in a QMainWindow

Syntax

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

None

Examples

See the qmainwindow command for examples on how to use the qsetcentralwidget command.

Â