1.7 Consider the constructor of the MyMainWindow class below and answer the question that follows: MyMainWindow:: MyMain
Posted: Sat Feb 19, 2022 3:21 pm
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