I have connected the signal to slot in the main.cpp file.
Here is the code:
QObject::connect( & iThread,
SIGNAL( ImageRefreshSignal
(QImage) ),
& dlg,
SLOT( ImageRefreshSlot
(QImage) ) );
QObject::connect( & iThread, SIGNAL( ImageRefreshSignal(QImage) ),& dlg, SLOT( ImageRefreshSlot(QImage) ) );
To copy to clipboard, switch view to plain text mode
I have checked it also,as inside the slot method the debug message "inside slot" is being printed.
Even calling the connect method inside the MainWindow:: on_btn_dialog_clicked() does the same thing.
Bookmarks