当前位置:网站首页>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 进入这个界面
现在先添加前缀,再添加文件

选择所有需要的资源
现在左下角编译一下
边栏推荐
- The URL in the RTSP setup header of the axis device cannot take a parameter
- P1055 [noip2008 popularization group] ISBN number
- LabVIEW为什么浮点数会丢失精度
- 力扣(LeetCode)182. 查找重复的电子邮箱(2022.07.01)
- 14.信号量的代码实现
- Shell programming 01_ Shell foundation
- UVM - configuration mechanism
- UVM——Callback
- 华为游戏初始化init失败,返回错误码907135000
- 14. Code implementation of semaphore
猜你喜欢

Analysis of hot spots in AI technology industry

软件产品管理系统有哪些?12个最佳产品管理工具盘点

Dialogue Wu Gang: why do I believe in the rise of "big country brands"?

The URL in the RTSP setup header of the axis device cannot take a parameter

Nodejs+express+mysql simple blog building

互联网快讯:腾讯会议应用市场正式上线;Soul赴港递交上市申请书

VSCode工具使用

1287_FreeRTOS中prvTaskIsTaskSuspended()接口实现分析

Introduction to MySQL 8 DBA foundation tutorial

618 what is the secret of dominating the list again? Nike's latest financial report gives the answer
随机推荐
洛谷 P5536 【XR-3】核心城市(贪心 + 树形 dp 寻找树的中心)
华为快应用中如何实现同时传递事件对象和自定义参数
[TS] 1368 seconds understand typescript generic tool types!
MYSQL关键字
Hdu1236 ranking (structure Sorting)
【快应用】Win7系统使用华为IDE无法运行和调试项目
Mysql database remote access permission settings
【AppLinking实战案例】通过AppLinking分享应用内图片
集成学习概览
[SUCTF2018]followme
What are the popular frameworks for swoole in 2022?
JSP webshell free -- the basis of JSP
Shapiro Wilk normal analysis by SPSS
MySQL keyword
MySQL lethal serial question 4 -- are you familiar with MySQL logs?
14. Code implementation of semaphore
【AGC】构建服务3-认证服务示例
Jsp webshell Free from killing - The Foundation of JSP
HDU1228 A + B(map映射)
Pywin32 opens the specified window