I have this very simple code:
#include <QApplication>
#include <QMessageBox>
int main( int argc, char **argv )
{
QMessageBox::information(NULL,
"Completed",
"All files have been copied.");
return app.exec();
}
#include <QApplication>
#include <QMessageBox>
int main( int argc, char **argv )
{
QApplication app( argc, argv );
QMessageBox::information(NULL, "Completed", "All files have been copied.");
return app.exec();
}
To copy to clipboard, switch view to plain text mode
I develop on Windows using VS2008, and I configured it as a Console application.
The message box pops up fine, but when I close the Console window using the "X" button on the top right, this message gets printed on the console:
QObject::killTimers(): timers cannot be stopped from another thread
I'm quite puzzled by this since all I did was popping up a MessageBox and there was no timer.
Does anyone have any inputs?
Bookmarks