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

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

axis设备的rtsp setup头中的url不能带参

SUS系统可用性量表

从MediaRecord录像中读取H264参数

MySQL数据库远程访问权限设置

SPSS做Shapiro-Wilk正态分析

js数组常用方法

Retrofit's callback hell is really vulnerable in kotlin synergy mode!

二叉树专题--AcWing 1589. 构建二叉搜索树

Easyexcel, a concise, fast and memory saving excel processing tool

14. Code implementation of semaphore
随机推荐
拆解美图SaaS:开着飞机换引擎
MySQL数据库远程访问权限设置
12. Process synchronization and semaphore
Use WinDbg to statically analyze dump files (summary of practical experience)
Jsp webshell Free from killing - The Foundation of JSP
What are the popular frameworks for swoole in 2022?
【AppLinking实战案例】通过AppLinking分享应用内图片
AI技术产业热点分析
Shutter - canvas custom graph
Thanos Receiver
洛谷 P5536 【XR-3】核心城市(贪心 + 树形 dp 寻找树的中心)
Mongodb quickly get started with some simple operations of mongodb command line
PCL projection point cloud
MongoDB 学习整理(条件操作符,$type 操作符,limit()方法,skip() 方法 和 sort() 方法)
What is the significance of the college entrance examination
UVM - usage of common TLM port
互联网快讯:腾讯会议应用市场正式上线;Soul赴港递交上市申请书
Set the playback speed during the playback of UOB equipment
UVM learning - object attribute of UVM phase
Point cloud projection picture