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

选择所有需要的资源
现在左下角编译一下
边栏推荐
猜你喜欢

【TS】1368- 秒懂 TypeScript 泛型工具类型!

(五)APA场景搭建之挡位控制设置

VSCode工具使用

Introduction to MySQL 8 DBA foundation tutorial

Mongodb quickly get started with some simple operations of mongodb command line
![[visual studio] visual studio 2019 community version cmake development environment installation (download | install relevant components | create compilation execution project | error handling)](/img/9f/4265f1e3927fcf66602f0fc9e7a9d9.jpg)
[visual studio] visual studio 2019 community version cmake development environment installation (download | install relevant components | create compilation execution project | error handling)

(5) Gear control setting of APA scene construction

The nanny level tutorial of flutter environment configuration makes the doctor green to the end

首份中国企业敏捷实践白皮书发布| 附完整下载

Kustomize user manual
随机推荐
从.bag文件中读取并保存.jpg图片和.pcd点云
华为AppLinking中统一链接的创建和使用
PCL 从一个点云中提取一个子集
SPSS做Shapiro-Wilk正态分析
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
JSP webshell free -- webshell free
PCL 点云转深度图像
《实习报告》Skywalking分布式链路追踪?
Jsp webshell Free from killing - The Foundation of JSP
使用华为性能管理服务,按需配置采样率
[TS] 1368 seconds understand typescript generic tool types!
PCL eigen introduction and simple use
长投学堂上面的账户安全吗?
华为应用市场应用统计数据问题大揭秘
P1055 [noip2008 popularization group] ISBN number
"Matching" is true love, a new attitude for young people to make friends
Point cloud projection picture
快应用中实现自定义抽屉组件
Hdu1236 ranking (structure Sorting)
《MySQL 8 DBA基础教程》简介