Qt 6.11 is out! See what's new in the release
blog
[SOLVED]this->hide() doesn't work in constructor
General and Desktop
4
Posts
3
Posters
2.6k
Views
1
Watching
-
Hi,
I think it's because your main window is shown in your main.cpp. It shoud be something like :
@int main(int argc, char *argv[]) {
QApplication a(argc, argv); MainWindow w; w.show(); return a.exec();}@
Just remove w.show();
-
use @showMinized();@
to show it again, you may use @showMaximized();@
or @showNormal();@