1.7 Consider the constructor of the MyMainWindow class below and answer the question that follows: MyMainWindow:: MyMain
-
- Site Admin
- Posts: 899603
- 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
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)
1.7 Consider the constructor of the MyMainWindow class below and answer the