当前位置:网站首页>[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 .

边栏推荐
- Post export data, return
- 手机工作室网络如何组建?
- C language: enumerating knowledge points summary
- 12. Priority queue and inert queue
- WebRTC实现简单音视频通话功能
- (heap sort) heap sort is super detailed, I don't believe you can't (C language code implementation)
- 【Express连接MySQL数据库】
- Use of construction methods
- 使用容器部署Jenkins
- 异常解决:cococaption包出现找不到edu.stanford.nlp.semgraph.semgrex.SemgrexPattern错误
猜你喜欢

Definition and implementation of stack and queue (detailed)

Implementation of jump connection of RESNET (pytorch)

11.备份交换机

11. Backup switch

Record of problems encountered in ROS learning

Post export data, return

Make a virtual human with zego avatar | virtual anchor live broadcast solution

Update learning materials daily

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

15.federation
随机推荐
[c language] PTA 7-51 sum the first n terms of odd part sequence
Mongo shell interactive command window
What is the difference between field, variable and property
Redux quick start
常见的限流方式
Sign the college entrance examination
用 ZEGO Avatar 做一个虚拟人|虚拟主播直播解决方案
The third ACM program design competition of Wuhan University of Engineering
Use of construction methods
[common commands]
Model tuning, training model trick
STL source code analysis (Hou Jie) notes -- Classification and testing of stl containers
[C language] PTA 7-47 binary leading zero
MySQL - 聚簇索引和辅助索引
14. Haproxy+kept load balancing and high availability
Idea small settings
Niuke IOI weekly 27 popularity group
9.延迟队列
Actual combat of flutter - DIO of request encapsulation (II)
pyscript无法引入包