当前位置:网站首页>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 ";
}
边栏推荐
- [C language] objective questions - knowledge points
- The result of innovation in professional courses such as robotics (Automation)
- redis你到底懂不懂之list
- paddle一个由三个卷积层组成的网络完成cifar10数据集的图像分类任务
- 攻防世界Web进阶区unserialize3题解
- When creating body middleware, express Is there any difference between setting extended to true and false in urlencoded?
- 搭建ADG过程中复制报错 RMAN-03009 ORA-03113
- Two small problems in creating user registration interface
- paddle入门-使用LeNet在MNIST实现图像分类方法二
- 在网页中打开展示pdf文件
猜你喜欢

52歲的周鴻禕,還年輕嗎?

爬虫实战(八):爬表情包

浪潮云溪分布式数据库 Tracing(二)—— 源码解析

智慧监管入场,美团等互联网服务平台何去何从

When creating body middleware, express Is there any difference between setting extended to true and false in urlencoded?

Qt添加资源文件,为QAction添加图标,建立信号槽函数并实现

Automated testing: robot framework is a practical skill that 90% of people want to know

第四期SFO销毁,Starfish OS如何对SFO价值赋能?

应用实践 | 数仓体系效率全面提升!同程数科基于 Apache Doris 的数据仓库建设
![[programming problem] [scratch Level 2] December 2019 flying birds](/img/5e/a105f8615f3991635c9ffd3a8e5836.png)
[programming problem] [scratch Level 2] December 2019 flying birds
随机推荐
How does the markdown editor of CSDN input mathematical formulas--- Latex syntax summary
Sqlite数据库存储目录结构邻接表的实现2-目录树的构建
Installation and configuration of sublime Text3
玩轉Sonar
“一个优秀程序员可抵五个普通程序员”,差距就在这7个关键点
Scrapy framework
Su embedded training - day4
C language 001: download, install, create the first C project and execute the first C language program of CodeBlocks
How to measure whether the product is "just needed, high frequency, pain points"
华泰证券官方网站开户安全吗?
[question de programmation] [scratch niveau 2] oiseaux volants en décembre 2019
Robomaster visual tutorial (1) camera
The difference between get and post
Linkedblockingqueue source code analysis - add and delete
韦东山第二期课程内容概要
3年经验,面试测试岗20K都拿不到了吗?这么坑?
Go learning notes (1) environment installation and hello world
【obs】Impossible to find entrance point CreateDirect3D11DeviceFromDXGIDevice
How to learn a new technology (programming language)
Emotional post station 010: things that contemporary college students should understand