QObject::moveToThread用例

时间:2021-09-05 14:04:20
【文件属性】:
文件名称:QObject::moveToThread用例
文件大小:6KB
文件格式:ZIP
更新时间:2021-09-05 14:04:20
qt QObject调用moveToThread(QThread *targetThread)后, 运行targetThread.start(),此后QObject的事件将在targetThread中处理。 比如:QObject的槽函数,将在targetThread中处理。
【文件预览】:
qtMoveToThread
----MyObject.h(255B)
----main.cpp(171B)
----MainWindow.h(542B)
----qtMoveToThread.pro.user(23KB)
----MyObject.cpp(381B)
----MainWindow.ui(2KB)
----qtMoveToThread.pro(1KB)
----MainWindow.cpp(842B)

网友评论