Hi,
Thank you very much for reply, I know that it can be done in a single shot thread , but as I told you this is not final design its just for PoC, main idea is to know how to switch screens.
I have changed the code as per your suggestion, but still I see only one ui screen all the time, below is the code:
Base::Base()
{
qDebug() << "Base CTOR called\n";
this->lrsGUI = new RaptorLrsGUI;
this
->lrsGUI
->setlabel
(QString("Loading Status..."));
this->coreGUI = new RaptorCoreGUI;
this->setCentralWidget(this->stackedWidget);
this->stackedWidget->addWidget(this->lrsGUI);
this->stackedWidget->addWidget(this->coreGUI);
this->stackedWidget->setCurrentIndex(0);
}
/* SLOT Fn */
void Base::rcvInitData()
{
this->stackedWidget->setCurrentIndex(1);
}
Base::Base()
{
qDebug() << "Base CTOR called\n";
this->lrsGUI = new RaptorLrsGUI;
this->lrsGUI->setlabel(QString("Loading Status..."));
this->coreGUI = new RaptorCoreGUI;
this->stackedWidget = new QStackedWidget();
this->setCentralWidget(this->stackedWidget);
this->stackedWidget->addWidget(this->lrsGUI);
this->stackedWidget->addWidget(this->coreGUI);
this->stackedWidget->setCurrentIndex(0);
}
/* SLOT Fn */
void Base::rcvInitData()
{
this->stackedWidget->setCurrentIndex(1);
}
To copy to clipboard, switch view to plain text mode
Bookmarks