当前位置:网站首页>QT implementation dynamic navigation bar
QT implementation dynamic navigation bar
2022-06-30 12:34:00 【Climb the grass】
One . effect

Two . Realization
Now click to open an application , There will be the shadow of the side navigation bar , such as clash

at present , The design of side navigation bar has become a design trend in continuous updating . Many applications now , In particular, the setup page will include a side navigation bar , Web pages are even more common , In web design, the side navigation bar design will use a single solid color as the base , Contains fewer options , The top of the navigation bar usually includes logo, Text links , And social media account links with small icons .
Want to make the most of the side navigation bar , The secret is to control the contrast between the sidebar itself and the content on the right , Include navigation items that are clearly visible , And it can work well on the mobile terminal . in addition , It should be noted that , Don't let the side of the screen be long enough , Just try to fill it with text links and content . Today, when simplicity prevails , Try to keep only what is necessary , Let's leave space to highlight them , This can better adapt to the current user experience .
Qt The middle navigation bar is generally used QListWidget To achieve , But if you want to add customization Item, There's a lot of code , And switching Item No dynamic effect . In the implementation of this paper , Here we go QVariantAnimation, Why not QPropertyAnimation Well ? Because you only need a variable value here , There is no need to control a property .
QHNavigationWidget.h
#ifndef QHNAVIGATIONWIDGET_H
#defin边栏推荐
- 1020. number of enclaves
- 3D线光谱共焦传感器在半导体如何检测
- Iserver publishing es service query setting maximum return quantity
- The website with id 0 that was requested wasn‘t found. Verify the website and try again
- Mysql中 begin..end使用遇到的坑
- Hannaiping of Qilin software: the construction of Digital China needs its own open source root community
- SuperMap 3D SDKs_Unity插件开发——连接数据服务进行SQL查询
- Shutter 007 input field from zero
- 3D视觉检测在生产流水的应用有哪些
- Joplin implements style changes
猜你喜欢

光谱共焦位移传感器的原理是什么?能应用那些领域?
![[target tracking] |pytracking configuring win to compile prroi_ pool. pyd](/img/ac/1e443164e57c4f34ddd1078de9f0d2.png)
[target tracking] |pytracking configuring win to compile prroi_ pool. pyd

SuperMap iDesktop 常见倾斜数据处理全流程解析

Some commonly used hardware information of the server (constantly updated)

Commands for redis basic operations

MATLAB中polarplot函数使用

NoSQL - redis configuration and optimization

Talk about how to do hardware compatibility testing and quickly migrate to openeuler?

Pinda general permission system (day 7~day 8)
![[cloud native | kubernetes] in depth understanding of deployment (VIII)](/img/88/4eddb8e6535a12541867b027b109a1.png)
[cloud native | kubernetes] in depth understanding of deployment (VIII)
随机推荐
Iserver publishing es service query setting maximum return quantity
Joplin implements style changes
Sublist3r error reporting solution
Talk about how to do hardware compatibility testing and quickly migrate to openeuler?
解决服务器重装无法通过ssh连接的问题
Set set
药店管理系统
[target tracking] |pytracking configuring win to compile prroi_ pool. pyd
The format of RTSP address of each manufacturer is as follows:
海思3559开发常识储备:相关名词全解
How to use the plug-in mechanism to gracefully encapsulate your request hook
Instructions for legend use in SuperMap iclient3d 11i for cesium 3D scene
grep匹配查找
[cf] 803 div2 B. Rising Sand
1175. prime number arrangement: application of multiplication principle
Set集合
List collection
Swagger2自动生成APi文档
品达通用权限系统(Day 7~Day 8)
Achieve secure data sharing among multiple parties and solve the problem of asymmetric information in Inclusive Finance