How to make my widget in a center of the mainwindow?
Solved
Mobile and Embedded
-
BCRun* mdialog = new BCRun;
MainWindow::setCentralWidget(mdialog);
I used this but its showing on the corner only. -
BCRun* mdialog = new BCRun;
MainWindow::setCentralWidget(mdialog);
I used this but its showing on the corner only.@Tamizharasan http://doc.qt.io/qt-5/layout.html
Also, why do you set central widget? -
@Tamizharasan http://doc.qt.io/qt-5/layout.html
Also, why do you set central widget?@jsulm To hide my existing widget and make this widget front . when the push button is clicked.
-
Hi,
Wouldn't QStackedWidget be a simpler solution ?