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

边栏推荐
- Single line function*
- Runc hang causes the kubernetes node notready
- Application and Optimization Practice of redis in vivo push platform
- He was laid off.. 39 year old Ali P9, saved 150million
- Win:使用 Shadow Mode 查看远程用户的桌面会话
- MATLB | multi micro grid and distributed energy trading
- Win: use shadow mode to view the Desktop Session of a remote user
- [Digital IC hand tearing code] Verilog edge detection circuit (rising edge, falling edge, double edge) | topic | principle | design | simulation
- RichView TRVUnits 图像显示单位
- Application and Optimization Practice of redis in vivo push platform
猜你喜欢
Open source SPL optimized report application coping endlessly
R语言用logistic逻辑回归和AFRIMA、ARIMA时间序列模型预测世界人口
How to make a cool ink screen electronic clock?
【LeetCode】110. Balanced binary tree (2 brushes of wrong questions)
PowerShell: use PowerShell behind the proxy server
[source code attached] Intelligent Recommendation System Based on knowledge map -sylvie rabbit
Bert fine tuning skills experiment
Li Kou Jianzhi offer -- binary tree chapter
Exploration of short text analysis in the field of medical and health (I)
Practice of tdengine in TCL air conditioning energy management platform
随机推荐
Openresty ngx Lua Execution stage
Interpretation of mask RCNN paper
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Binary tree traversal - middle order traversal (golang)
85.4% mIOU! NVIDIA: using multi-scale attention for semantic segmentation, the code is open source!
Win:将一般用户添加到 Local Admins 组中
179. Maximum number - sort
How to find hot projects in 2022? Dena community project progress follow-up, there is always a dish for you (1)
. Net starts again happy 20th birthday
Marubeni Baidu applet detailed configuration tutorial, approved.
JVM's responsibility - load and run bytecode
Asynchronous and promise
[download white paper] does your customer relationship management (CRM) really "manage" customers?
Practical case of SQL optimization: speed up your database
Valentine's Day flirting with girls to force a small way, one can learn
Which common ports should the server open
Timescaledb 2.5.2 release, time series database based on PostgreSQL
100 basic multiple choice questions of C language (with answers) 04
One plus six brushes into Kali nethunter
Single line function*