My application has a QMainWindow and I need to run one of its functions after the QApplicaiton event engine is running. Any suggestions?
#include <QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
MainWindow mainWin;
mainWin.show();
return app.exec(); //Right after this, event engine is running. How to send something to my mainWin to run my onStarup()? signal? event??
}
//MainWin...
MainWindow::MainWindow() {}
MainWindow::onStartup() {} //Call this, display a QProgressBar and do some stuff
#include <QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MainWindow mainWin;
mainWin.show();
return app.exec(); //Right after this, event engine is running. How to send something to my mainWin to run my onStarup()? signal? event??
}
//MainWin...
MainWindow::MainWindow() {}
MainWindow::onStartup() {} //Call this, display a QProgressBar and do some stuff
To copy to clipboard, switch view to plain text mode
Bookmarks