qt的一个小问题
本人初学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
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
...全文
相关推荐
Qt 多线程实现动态波形图表(这个工程有问题,请不要审核通过,我已经上传了另一个工程了)
Qt 多线程实现波形图标,一个简单的例子,初学者很容易懂,主要是多线程处理数据,发回ui 线程去显示,防止单线程时,数据量大卡死
安装qt时遇到的一些问题
qt-2.3.2安装过程遇到的一些问题,及解决方法
Qt在vs2019中使用及设置方法
主要介绍了Qt在vs2019中使用及设置方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
QtDllLearning项目是一个专注于深入讲解和演示如何在Qt跨平台应用程序开发框架中创建导出生成并有效使用动态链接库的综合性开源教程与代码示例库_该项目详细涵盖了从基础的.zip
QtDllLearning项目是一个专注于深入讲解和演示如何在Qt跨平台应用程序开发框架中创建导出生成并有效使用动态链接库的综合性开源教程与代码示例库_该项目详细涵盖了从基础的.zip
qt二维地图 qt图像显示框架
在线下载Google地图 影像 矢量切片和地形晕眩图,实时显示,如果下载后编译无法通过,请项目中的文件移除后重新添加,VS2015+qt591


工具平台和程序库
