标签: c++ qt pointers qscopedpointer
任何人都可以给我一个快速教程?还是介绍? :)
答案 0 :(得分:2)
您必须使用QObject-derived class object QScopedPointer方法获取QScopedPointer::data()并使用它:
QObject-derived class object
QScopedPointer
QScopedPointer::data()
QScopedPointer<QThread> p(new QThread); connect(p.data(), SIGNAL(finished()), SLOT(onThreadFinish()));
QScopedPointer class reference