当前位置:网站首页>QT学习日记8——资源文件添加
QT学习日记8——资源文件添加
2022-07-02 07:23:00 【herb.dr】
目录
一、Qt 中的 UI 后缀名文件
1.1 在创建项目的时候加上 UI
得到的文件如下图所示
1.2 进入这个文件
在这个页面中新建项目是很容易的,
因为那里不能起中文的名字,所以可以在这里修改
添加工具栏:
把红色框内的东西移动到工具栏里面
1.3 使用代码操控 UI 文件
二、把资源放到项目中
1、如下图,把Image复制到代码同级目录中
2、新建qt管理资源的类
新建的界面在这里
如果离开这个界面了,需要右键 open in editor 进入这个界面
现在先添加前缀,再添加文件
选择所有需要的资源
现在左下角编译一下
边栏推荐
- 华为AppLinking中统一链接的创建和使用
- PCL 点云转深度图像
- 【AGC】如何解决事件分析数据本地和AGC面板中显示不一致的问题?
- Kustomize user manual
- The URL in the RTSP setup header of the axis device cannot take a parameter
- UVM factory mechanism
- 拆解美图SaaS:开着飞机换引擎
- Mongodb quickly get started with some simple operations of mongodb command line
- Start class, data analysis, high salary training plan, elite class
- 最详细MySql安装教程
猜你喜欢
二叉树专题--AcWing 3384. 二叉树遍历(已知先序遍历 边建树 边输出中序遍历)
Dialogue Wu Gang: why do I believe in the rise of "big country brands"?
Open the encrypted SQLite method with sqlcipher
《MySQL 8 DBA基础教程》简介
Is this code PHP MySQL redundant?
SUS系统可用性量表
华为AppLinking中统一链接的创建和使用
Use WinDbg to statically analyze dump files (summary of practical experience)
【TS】1368- 秒懂 TypeScript 泛型工具类型!
【AGC】构建服务3-认证服务示例
随机推荐
二叉树专题--【深基16.例7】普通二叉树(简化版)(multiset 求前驱 后继 哨兵法)
UVM learning - object attribute of UVM phase
点云投影图片
HDU1234 开门人和关门人(水题)
The URL in the RTSP setup header of the axis device cannot take a parameter
Filtering of PCL
12. Process synchronization and semaphore
使用华为性能管理服务,按需配置采样率
JS settimeout() and interview questions
快应用中实现自定义抽屉组件
MongoDB 学习整理(条件操作符,$type 操作符,limit()方法,skip() 方法 和 sort() 方法)
js setTimeout()与面试题
PCL Eigen介绍及简单使用
JSP webshell免殺——JSP的基礎
[SUCTF2018]followme
P1055 [NOIP2008 普及组] ISBN 号码
JSP webshell free -- webshell free
集成学习概览
AI技术产业热点分析
Session cookies and tokens