08-21-2013 06:04 AM
I'm having problems to connect a signal from a SystemProgressDialog object to QThread derived class object.
The connect call it's:
connect(SpinningWheelDialog , SIGNAL(finished(bb::system:ystemUiResult::Type) ) , this , SLOT(terminateNotification(bb::system:ystemUiResult::Type) ) );
The SpinningWheelDialog object is a SystemProgressDialog;
The class this is the QThread derived one and the connect it's invoked in the constructor of this class.
There are no error both at compilation and runtime, so i suppose the code is correct. It simply doesn't work. When a button is clicked the Dialog disappear but the slot method is not called.
I want the thread to be terminated when the Dialog is closed or destroyed.
Any help is appreciated.
08-29-2013 02:18 PM
It's advised not to derive QThread any more, take a look here...
The Thread Support section has some example code which you should easily be able to adapt to your code.