- Game Programming Using Qt Beginner's Guide
- Witold Wysota Lorenz Haas
- 122字
- 2021-08-20 10:45:18
Time for action – creating a toolbar
To create a toolbar, invoke the context menu on the form and choose Add Tool Bar. Then, drag the New Game action over the toolbar and drop it there. Open a context menu for the toolbar and choose Append Separator. Then, drag the Quit action from the Action Editor and drop it in the toolbar behind the separator. The following figure presents the final layout that you should have now:

What just happened?
Creating toolbars is very similar to creating menus. You first create the container (the toolbar) and then drag-and-drop actions from the action editor. You can even drag an action from the menu bar and drop it on the toolbar and vice versa!
推薦閱讀
- Extending Jenkins
- 深入核心的敏捷開發:ThoughtWorks五大關鍵實踐
- 演進式架構(原書第2版)
- 實用防銹油配方與制備200例
- 精通軟件性能測試與LoadRunner實戰(第2版)
- C語言程序設計立體化案例教程
- 21天學通C++(第6版)
- Flux Architecture
- 深入淺出RxJS
- Nginx實戰:基于Lua語言的配置、開發與架構詳解
- Microsoft 365 Certified Fundamentals MS-900 Exam Guide
- JavaScript腳本特效編程給力起飛
- CRYENGINE Game Development Blueprints
- 工業機器人離線編程
- Python Programming for Arduino