- Call base class constructor in MainWindow ctor
- Where do you apply that mainLayout? Create a "central" widget, set mainLayout as it's layout, and set the "central" widget as mainwindow's central widget.
Qt Code:
{ ... mainLayout->addWidget(first); mainLayout->addWidget(second); mainLayout->addWidget(third); central->setLayout(mainLayout); setCentralWidget(central); }To copy to clipboard, switch view to plain text mode
Bookmarks