O'Reilly logo

Qt 5 Blueprints by Symeon Huang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Utilizing the menu bar

Now that you have finished the bar at the bottom, it's time to begin the one on top—the menu bar. Similar to the status bar, right-click on MainWindow in the Design mode, and select Create Menu Bar if it doesn't exist or was previously removed.

Then, just follow the hints. Add a File menu containing the Exit action. Another menu could be About, which contains the About CameraDemo action. You should know that these actions are able to change in the Action Editor panel, which is in the same place as Signals & Slots Editor.

Utilizing the menu bar

As shown in the following screenshot, the names of these actions are changed to actionAbout and actionExit ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required