Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

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.

 

  • No labels