qt的一个小问题

peanwang 学生  2017-12-03 11:49:21
本人初学qt,看tutorials有一处没看懂

Click on "Type Here", and add the options New, Open, Save, Save as, Print and Exit. This creates 5 lines in the Action Editor below[u]. To connect the actions to slots, right-click an action and select Go to slot > triggered(), and complete the code for that given slot.
If we also want to add the actions to a toolbar, we can assign an icon to each QAction, and then drag the QAction to the toolbar. You assign an icon by entering an icon name in the Icon property of the action concerned. When the QAction has been dragged to the toolbar, clicking the icon will launch the associated slot.
Complete the method on_actionNew_triggered() :

To connect the actions to slots, right-click an action and select Go to slot > triggered(), and complete the code for that given slot.
这一段,求解这处是怎么操作?
tutorials地址:http://doc.qt.io/qt-5/gettingstartedqt.html
...全文
101 回复 点赞 打赏 收藏 举报
写回复
回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
相关推荐
发帖
工具平台和程序库
加入

2.4w+

社区成员

C/C++ 工具平台和程序库
申请成为版主
帖子事件
创建了帖子
2017-12-03 11:49
社区公告
暂无公告