16,216
社区成员
发帖
与我相关
我的任务
分享
class Thread : public QThread
{
public:
explicit Thread();
~Thread();
void show();
virtual void run();
...
};
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
Thread* test = new Thread();
test->run();
test->show();
return app.exec();
}