当前位置:网站首页>[QT learning notes] * insert pictures in the window
[QT learning notes] * insert pictures in the window
2022-07-29 04:34:00 【IT.Husky】
The above link is to use Qt Simple audio and video player , Use Chinese characters to describe the player name on the start page of the main window , For a more beautiful display of the player homepage , You can insert pictures on the start page of the player .
Qt There is no Image Components , Here is a record of my use label How to insert pictures .
1、 Right click on the item , choice “Add New...”【 Select add new file 】.

2、 Select... In the pop-up dialog box “Qt Resource File”.

3、 name qrc File and select the path of the added file .

4、 Select finish .

5、 Open the created .qrc file ( Here is image.qrc), Click on “Add Prefix”【 add prefix 】 And name the prefix .

6、 Click on “Add Files”【 Add files 】, Select Add File and open .

7、 At this time, the file we added will be saved , Click on “mainwindow.ui”, Get into UI Interface .

8、 Drag a in the main window Label, stay label In the property bar of pixmap, Click on “...”, Select resource file .

9、 The running display window is shown in the following figure , complete .

边栏推荐
- 恒星科通邀您“湘”约第24届中国高速公路信息化大会暨技术产品展示会
- Classes and objects (III)
- Not for 61 days. The shortest word code
- On quotation
- LeetCode(剑指 Offer)- 53 - I. 在排序数组中查找数字 I
- STL source code analysis (Hou Jie) notes -- Classification and testing of stl containers
- What is the use of meta-info?
- 11. Backup switch
- Log configuration logback
- 异常解决:cococaption包出现找不到edu.stanford.nlp.semgraph.semgrex.SemgrexPattern错误
猜你喜欢

STL source code analysis (Hou Jie) notes - STL overview

post导出数据,返回

不会就坚持59天吧 替换单词

命令行交互工具(最新版) inquirer 实用教程

恒星科通邀您“湘”约第24届中国高速公路信息化大会暨技术产品展示会

Won't you just stick to 69 days? Merge range

LeetCode_ Stack topics

不会就坚持58天吧 实现前缀树

【Express连接MySQL数据库】

Make a virtual human with zego avatar | virtual anchor live broadcast solution
随机推荐
pyscript无法引入包
6. Pytest generates an allure Report
Pytorch GPU and CPU models load each other
On quotation
What is the use of meta-info?
LeetCode_ Stack topics
Don't insist on 66 days. Weight generates random numbers
Mongo Shell交互式命令窗口
[c language] PTA 7-63 falling ball
9.延迟队列
Won't you just stick to 69 days? Merge range
settings.xml
i++与++i详解
Coding questions encountered in the interview
Implementation of jump connection of RESNET (pytorch)
Auto.js脚本开发入门
RecyclerView通过DPAD按键上下切换焦点 切换到界面外的控件时焦点会左右乱跳
使用容器部署Jenkins
Pyqt5 learning pit encounter and pit drainage (3) background picture coverage button style and check button status
11.备份交换机