qt的一个小问题

peanwang peanwang 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
本人初学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
...全文

相关推荐

评论
收藏 已收藏
分享
返回顶部
peanwang
工具平台和程序库 24,849 成员 27,328 内容