问题
as the tittle says, i could not find any relationship or how to pass them to signals and slots.
Anyone could give me a quick tutorial? or Introduction? :)
回答1:
You have to get an QObject-derived class object
from the QScopedPointer
by QScopedPointer::data()
method and use it:
QScopedPointer<QThread> p(new QThread);
connect(p.data(), SIGNAL(finished()), SLOT(onThreadFinish()));
QScopedPointer class reference
来源:https://stackoverflow.com/questions/31988399/qscopedpointer-with-signals-and-slots