HI,
I'm working on Qt5 and I have that in main:
int main(int argc, char *argv[])
{
MainWindow w;
w.showMaximized();
return a.exec();
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.showMaximized();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
And then in the constructor I call some functions that will create folders and copy and move files.
MainWindow
::MainWindow(QWidget *parent
) : ui(new Ui::MainWindow)
{
ui->setupUi(this);
[...] //Code that should work on background
}
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
[...] //Code that should work on background
}
To copy to clipboard, switch view to plain text mode
What I want is to show the gui (where you have/see a picture with move with some text that changes) while the program works on the background but what it does is to do all the background job and once it has finished, then the GUI appears.
Thank you!
Bookmarks