PDA

View Full Version : QObject::killTimers(): timers cannot be stopped from another thread



ShaChris23
28th July 2010, 23:21
I have this very simple code:



#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();
}


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?

franz
29th July 2010, 05:41
In this particular case you should probably not call app.exec().