Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如标题所说,我找不到任何关系或如何将它们传递给信号和插槽。
任何人都可以给我一个快速教程?还是介绍?:)
您必须QObject-derived class object从QScopedPointerbyQScopedPointer::data()方法中获取并使用它:
QObject-derived class object
QScopedPointer
QScopedPointer::data()
QScopedPointer<QThread> p(new QThread); connect(p.data(), SIGNAL(finished()), SLOT(onThreadFinish()));
QScopedPointer 类参考