[SOLVED]this->hide() doesn't work in constructor
General and Desktop
4
Posts
3
Posters
1.7k
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();@
Please visit my open-source projects at https://github.com/Code-ReaQtor.