int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); HelloThread thread; thread.start(); qDebug() << "hello from GUI thread " << app.thread()->currentThreadId(); thread.wait(); // do not exit before the thread is completed! return 0; } http://blog.csdn.net/wsh6759/article/details/7432337
时间: 2024-10-03 23:05:01