当前位置:网站首页>QT adds resource files, adds icons for qaction, establishes signal slot functions, and implements
QT adds resource files, adds icons for qaction, establishes signal slot functions, and implements
2022-07-08 00:20:00 【Miaowei】
Qt List of articles
List of articles
Preface
Add Icon on toolbar
One 、 Implementation steps
1. Add resources
2. Defining variables
3. Add Icon
trajectories_action_ = new QAction("trajectories");
trajectories_action_->setIcon(QIcon(":images/Add.ico"));
trajectories_action_->setCheckable(true);
tools_bar_->addAction(trajectories_action_);
4. Establish signal slot
- Add time response slot function
void FastViewWidgetLayout::onTrajection()
{
qDebug() << " Event response function ";
}
边栏推荐
- Development of a horse tourism website (realization of login, registration and exit function)
- 【編程題】【Scratch二級】2019.12 飛翔的小鳥
- 【测试面试题】页面很卡的原因分析及解决方案
- Installation and configuration of sublime Text3
- QT and OpenGL: load 3D models using the open asset import library (assimp)
- Solution to the problem of unserialize3 in the advanced web area of the attack and defense world
- 服务器防御DDOS的方法,杭州高防IP段103.219.39.x
- 备库一直有延迟,查看mrp为wait_for_log,重启mrp后为apply_log但过一会又wait_for_log
- 攻防世界Web进阶区unserialize3题解
- 浪潮云溪分布式数据库 Tracing(二)—— 源码解析
猜你喜欢
STM32F1與STM32CubeIDE編程實例-旋轉編碼器驅動
51与蓝牙模块通讯,51驱动蓝牙APP点灯
快速上手使用本地测试工具postman
redis你到底懂不懂之list
Jouer sonar
Development of a horse tourism website (realization of login, registration and exit function)
Go learning notes (2) basic types and statements (1)
STM32F1与STM32CubeIDE编程实例-旋转编码器驱动
"An excellent programmer is worth five ordinary programmers", and the gap lies in these seven key points
华为交换机S5735S-L24T4S-QA2无法telnet远程访问
随机推荐
【编程题】【Scratch二级】2019.03 绘制方形螺旋
【编程题】【Scratch二级】2019.12 绘制十个正方形
动态库基本原理和使用方法,-fPIC 选项的来龙去脉
Automated testing: robot framework is a practical skill that 90% of people want to know
Robomaster visual tutorial (10) target prediction
Binder核心API
52歲的周鴻禕,還年輕嗎?
【编程题】【Scratch二级】2019.12 飞翔的小鸟
Scrapy framework
【转载】解决conda安装pytorch过慢的问题
ROS从入门到精通(九) 可视化仿真初体验之TurtleBot3
[programming questions] [scratch Level 2] March 2019 garbage classification
他们齐聚 2022 ECUG Con,只为「中国技术力量」
【推荐系统基础】正负样本采样和构造
Handwriting a simulated reentrantlock
RPA云电脑,让RPA开箱即用算力无限?
【编程题】【Scratch二级】2019.03 垃圾分类
Qt不同类之间建立信号槽,并传递参数
How to measure whether the product is "just needed, high frequency, pain points"
Visual Studio Deployment Project - Create shortcut to deployed executable