当前位置:网站首页>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 ";
}
边栏推荐
- 【推荐系统基础】正负样本采样和构造
- Cause analysis and solution of too laggy page of [test interview questions]
- QT and OpenGL: load 3D models using the open asset import library (assimp)
- Preliminary test of optical flow sensor: gl9306
- How to insert highlighted code blocks in WPS and word
- 【編程題】【Scratch二級】2019.12 飛翔的小鳥
- SQL knowledge summary 004: Postgres terminal command summary
- Teach you to make a custom form label by hand
- Su embedded training - day4
- 全自动化处理每月缺卡数据,输出缺卡人员信息
猜你喜欢
Stm32f1 and stm32cubeide programming example - rotary encoder drive
Relevant methods of sorting arrays in JS (if you want to understand arrays, it's enough to read this article)
备库一直有延迟,查看mrp为wait_for_log,重启mrp后为apply_log但过一会又wait_for_log
Two small problems in creating user registration interface
[研发人员必备]paddle 如何制作自己的数据集,并显示。
【編程題】【Scratch二級】2019.12 飛翔的小鳥
单机高并发模型设计
搭建ADG过程中复制报错 RMAN-03009 ORA-03113
Smart regulation enters the market, where will meituan and other Internet service platforms go
C# 泛型及性能比较
随机推荐
如果在构造函数中抛出异常,最好的做法是防止内存泄漏?
哪个券商公司开户佣金低又安全,又靠谱
How does the markdown editor of CSDN input mathematical formulas--- Latex syntax summary
Trust orbtk development issues 2022
全自动化处理每月缺卡数据,输出缺卡人员信息
备库一直有延迟,查看mrp为wait_for_log,重启mrp后为apply_log但过一会又wait_for_log
How does starfish OS enable the value of SFO in the fourth phase of SFO destruction?
"An excellent programmer is worth five ordinary programmers", and the gap lies in these seven key points
52岁的周鸿祎,还年轻吗?
STM32F1與STM32CubeIDE編程實例-旋轉編碼器驅動
Development of a horse tourism website (optimization of servlet)
35岁真就成了职业危机?不,我的技术在积累,我还越吃越香了
paddle入门-使用LeNet在MNIST实现图像分类方法二
DNS 系列(一):为什么更新了 DNS 记录不生效?
Solution to prompt configure: error: curses library not found when configuring and installing crosstool ng tool
从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
Using Google test in QT
Su embedded training - Day3
Stm32f1 and stm32cubeide programming example - rotary encoder drive
QT and OpenGL: loading 3D models using the open asset import library (assimp) - Part 2