Results 1 to 2 of 2

Thread: QObject::killTimers(): timers cannot be stopped from another thread

  1. #1
    Join Date
    Apr 2007
    Posts
    62
    Thanks
    43
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QObject::killTimers(): timers cannot be stopped from another thread

    I have this very simple code:

    Qt Code:
    1. #include <QApplication>
    2. #include <QMessageBox>
    3. int main( int argc, char **argv )
    4. {
    5. QApplication app( argc, argv );
    6.  
    7. QMessageBox::information(NULL, "Completed", "All files have been copied.");
    8.  
    9. return app.exec();
    10. }
    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?

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QObject::killTimers(): timers cannot be stopped from another thread

    In this particular case you should probably not call app.exec().
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  3. The following user says thank you to franz for this useful post:

    ShaChris23 (26th August 2010)

Similar Threads

  1. how to use Multiple timers?
    By qtlinuxnewbie in forum Newbie
    Replies: 8
    Last Post: 21st September 2012, 09:01
  2. Timers seemingly getting stuck.
    By MarkSimon in forum Qt Programming
    Replies: 2
    Last Post: 10th April 2010, 12:30
  3. QResource Stopped Working
    By JPNaude in forum Qt Programming
    Replies: 0
    Last Post: 22nd October 2008, 12:26
  4. How to cleanup timers properly?
    By jpn in forum Qt Programming
    Replies: 7
    Last Post: 6th July 2006, 17:52
  5. Signals/Slots stopped working
    By Jimmy2775 in forum Qt Programming
    Replies: 8
    Last Post: 31st March 2006, 21:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.