Qt World Summit: Submit your Presentation

QTimer works on the main thread?

  • QTimer works on the main thread?
    i found when i write
    somewhere in the main thread.
    the QTimer's timeout() signal's slot never be called.....
    i also tried timverEvent()....still the same...

  • Using an endless loop is NOT the way to program in C++. Your freezing your Main thread and your event queue will not be executed anymore.
    Only if using multithreading you will have other threads that keep on running if you place an endless loop in the other thread.

Log in to reply