Page 1 of 1

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
by answerhappygod
1 7 Consider The Constructor Of The Mymainwindow Class Below And Answer The Question That Follows Mymainwindow Mymain 1
1 7 Consider The Constructor Of The Mymainwindow Class Below And Answer The Question That Follows Mymainwindow Mymain 1 (24.67 KiB) Viewed 43 times
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)