1.7 Consider the constructor of the MyMainWindow class below and answer the question that follows: MyMainWindow:: MyMain

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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

Post 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 42 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)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply