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:


Qt Code:
  1. Base::Base()
  2. {
  3. qDebug() << "Base CTOR called\n";
  4.  
  5. this->lrsGUI = new RaptorLrsGUI;
  6. this->lrsGUI->setlabel(QString("Loading Status..."));
  7. this->coreGUI = new RaptorCoreGUI;
  8.  
  9. this->stackedWidget = new QStackedWidget();
  10. this->setCentralWidget(this->stackedWidget);
  11. this->stackedWidget->addWidget(this->lrsGUI);
  12. this->stackedWidget->addWidget(this->coreGUI);
  13.  
  14. this->stackedWidget->setCurrentIndex(0);
  15.  
  16. }
  17.  
  18. /* SLOT Fn */
  19. void Base::rcvInitData()
  20. {
  21. this->stackedWidget->setCurrentIndex(1);
  22. }
To copy to clipboard, switch view to plain text mode