QScopedPointer with signals and slots

2.6k Views Asked by At

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

There are 1 best solutions below

3
On BEST ANSWER

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