I have one MainWindow and 3 Widgets. I am putting all widgets inside QStackWidget.
I am also have a menu.
Menu on every widget shows "Options" left side and "Exit" right side. I want in few widgets it should be "Back" at right side instead of exit. So that user can go on last screen. How can I do that? I tried following but no success
Code:QAction* back = new QAction(tr("Back"), this); back->setSoftKeyRole(QAction::NegativeSoftKey); connect(back, SIGNAL(triggered()), this, SLOT(gotoLastScreen()));

Reply With Quote


