Base class is derived from QMainWindow as below:
{
Q_OBJECT
public:
RaptorLrsGUI *lrsGUI;
RaptorCoreGUI *coreGUI;
Base();
private slots:
void rcvInitData();
};
class Base : public QMainWindow
{
Q_OBJECT
public:
RaptorLrsGUI *lrsGUI;
RaptorCoreGUI *coreGUI;
QStackedWidget *stackedWidget;
Base();
private slots:
void rcvInitData();
};
To copy to clipboard, switch view to plain text mode
I have put the log in the SLOT function and I can see it getting printed:
void Base::rcvInitData()
{
qDebug()<< "Main Thread (CALLBACK): Display second screen\n";
this->stackedWidget->setCurrentIndex(1);
}
void Base::rcvInitData()
{
qDebug()<< "Main Thread (CALLBACK): Display second screen\n";
this->stackedWidget->setCurrentIndex(1);
}
To copy to clipboard, switch view to plain text mode
Base CTOR called
Client Thread: Connecting timer object timeout signal with threads timerhit slot
Client Thread: Starting timer objecti
Client Thread: executing clock thread
Client Thread: Emitting sendMsg signal
Main Thread (CALLBACK): Display second screen
Client Thread: Emitting sendMsg signal
Main Thread (CALLBACK): Display second screen
Base CTOR called
Client Thread: Connecting timer object timeout signal with threads timerhit slot
Client Thread: Starting timer objecti
Client Thread: executing clock thread
Client Thread: Emitting sendMsg signal
Main Thread (CALLBACK): Display second screen
Client Thread: Emitting sendMsg signal
Main Thread (CALLBACK): Display second screen
To copy to clipboard, switch view to plain text mode
Bookmarks