当前位置:网站首页>Hmi-30- [motion mode] the module on the right side of the instrument starts to write
Hmi-30- [motion mode] the module on the right side of the instrument starts to write
2022-07-05 02:21:00 【DreamLife.】

HMI-30-【 Sports mode 】 The module on the right side of the instrument begins to be written
I drank some tea today , I feel like writing code , Today, let's try the module on the right side of the sports mode instrument , In my resource file , Only music , So the frame of the right module should be built first , Only realize music module .
keyword :
HMI
、Music
、music
、tabWidget
、Qt
The module on the right side of the instrument realizes
stay PS Export the whole music module , We need to see the whole size of this module . This is the reverse , The correct development posture should be the first out block diagram , In giving art to realize , The size should have been set long ago . Everyone doesn't want to learn from me .
stay Qt Build the right module , And add TabWidget
As shown in the figure below , stay Qt Create a new one widget, Name it MDS_Right
. Put a... In it TabWidget, In this way, our main framework is completed , In later development , every last Tab For a function module , For example, I named the first module tab_music
Ratio means that the first module is the music module . You can make other modules later , Enrich the instruments .
Create a new music module QWidget
As shown in the figure below , I have created a new one named MDS_Right_Music
Of Qwidget, For the time being, a new one named label_background
Of QLabel As the background .
Size comes from PS Exported music module .
The problem arises , This size is unusable , You can see the following filled with solid color , The information column on the surface of my instrument has been covered . So I have to revise it a little .
Corrected , Final , We set the size of the right module as 460*516
, As shown in the figure below :
In this way, it looks more harmonious , The following is to cut the pictures of my music module slightly , Put it in to see the effect .
Show song name and song author
This is simple , That's the two one. QLabe, It's not going on here anymore .
Show timeline
This is actually slider, Just beautify it , Before beautification, the following :
The following figure is the modified :
The effect is still not ideal , Adjusting :
You can see , The progress of playing is different from that of not playing . The temporary progress bar is like this , The final stylesheet is as follows :
"QSlider{border-color: #AA0000;}"
"QSlider::groove:horizontal {border: 1px solid #AA0000;height: 1px;margin: 0px 0;left: 5px; right: 5px;}"
"QSlider::handle:horizontal {border: 0px ;border-image: url(:/Sport/Resources/MeterDisplay/Sport/MDSR/Music/sliderpointer.png);width: 7px; height: 16; margin: -8px -3px -8px -3px;}"
"QSlider::sub-page:horizontal{background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 #AA0000, stop:0.25 #AA0000, stop:0.5 #AA0000, stop:1 #AA0000);}"
"QSlider::add-page:horizontal{background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 #FF0000, stop:0.25 #FF0000, stop:0.5 #FF0000, stop:1 #FF0000);"
Current progress
We need to deal with the pictures later , See you next time , The current movement mode progress is as follows : Go and cook n_n.
The first stage of achievement display
At present, to complete HUD Interface and interface development , LCD instrument comfort mode development . It's shown as follows :
The most handsome in the whole network Qt Develop Geely Auto instrument
explain :
The reference prototype used in this project comes from :[ geely ] borui GE | Meter HMI Design 、 Geely HMI project .
The ownership and interpretation of the design drawings belong to Geely Automobile .
All resource documents of the project have ** The immortal Xiaohai ** Reproduction production .
The code of this project will not be open source for the time being , If you need the source code, please contact me , QR code in the upper left corner plus wechat .
This program is limited to learning and communication 、 Commercial use is prohibited .

边栏推荐
- Learn tla+ (XII) -- functions through examples
- When to catch an exception and when to throw an exception- When to catch the Exception vs When to throw the Exceptions?
- Prometheus monitors the correct posture of redis cluster
- Traditional chips and AI chips
- Exploration of short text analysis in the field of medical and health (I)
- [understanding of opportunity -38]: Guiguzi - Chapter 5 flying clamp - warning one: there is a kind of killing called "killing"
- Interesting practice of robot programming 15- autoavoidobstacles
- RichView TRVStyle MainRVStyle
- Yolov5 model training and detection
- 官宣!第三届云原生编程挑战赛正式启动!
猜你喜欢
如何搭建一支搞垮公司的技术团队?
openresty ngx_lua執行階段
A tab Sina navigation bar
He was laid off.. 39 year old Ali P9, saved 150million
Li Kou Jianzhi offer -- binary tree chapter
如何搭建一支搞垮公司的技術團隊?
【附源码】基于知识图谱的智能推荐系统-Sylvie小兔
JVM - when multiple threads initialize the same class, only one thread is allowed to initialize
STM32 series - serial port UART software pin internal pull-up or external resistance pull-up - cause problem search
[Digital IC hand tearing code] Verilog edge detection circuit (rising edge, falling edge, double edge) | topic | principle | design | simulation
随机推荐
Win: use shadow mode to view the Desktop Session of a remote user
When to catch an exception and when to throw an exception- When to catch the Exception vs When to throw the Exceptions?
A tab Sina navigation bar
I use these six code comparison tools
如何做一个炫酷的墨水屏电子钟?
CAM Pytorch
Application and Optimization Practice of redis in vivo push platform
Collection of gmat750 wrong questions
187. Repeated DNA sequence - with unordered_ Map basic content
[uc/os-iii] chapter 1.2.3.4 understanding RTOS
PowerShell: use PowerShell behind the proxy server
官宣!第三届云原生编程挑战赛正式启动!
Day_ 17 IO stream file class
Introduce reflow & repaint, and how to optimize it?
Win:使用组策略启用和禁用 USB 驱动器
Interesting practice of robot programming 15- autoavoidobstacles
[機緣參悟-38]:鬼穀子-第五飛箝篇 - 警示之一:有一種殺稱為“捧殺”
Introduce reflow & repaint, and how to optimize it?
[Yu Yue education] National Open University spring 2019 0505-22t basic nursing reference questions
The application and Optimization Practice of redis in vivo push platform is transferred to the end of metadata by