Qt-UI

Q Main Window

QWidget Slots | | Window Title

QMainWindow is a widget with a predefined layout, that features a menu bar and other convenience classes.

Since it already has a layout, usage is slightly different from regular windows, menaing that we set the widget’s children not by adding a layout (setLayout) but by adding a central widget that consumes the work area of the main window (setCentralWidget).

With a QMainwindow we can easily

  • create menu entries and actions
  • load and save persistent program settings
  • set the main window title


QWidget Slots | | Window Title

Options: