To start an event loop from a non-GUI thread, use QThread.exec(). Qt uses the timer's thread affinity to determine which thread will emit the timeout() signal.
確定! 回上一頁