1.7 Consider the constructor of the MyMainWindow class below and answer the question that follows: MyMainWindow:: MyMain
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
1.7 Consider the constructor of the MyMainWindow class below and answer the question that follows: MyMainWindow:: MyMain
1.7 Consider the constructor of the MyMainWindow class below and answer the question that follows: MyMainWindow:: MyMainWindow() { Menu * menu = new QMenu ("&Services", this); QAction action = new QAction("&Login", this); QAction Group * actionGroup = new QActionGroup(); actionGroup->addAction (action); menu->addActions (actionGroup->actions()); this->menuBar () ->addMenu (menu); connect (action, SIGNAL (triggered()), this, SLOT (getPassword()); } Change the constructor of MyMainWindow so that the main window also has a toolbar at the bottom with a single button on it. When the user clicks on the button, the effect should be the same as clicking on the Login option on the Services menu. (5)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!