当前位置:网站首页>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边栏推荐
- Mysql中 begin..end使用遇到的坑
- 695. maximum island area
- Time function and clock_ Differences between gettime() functions
- Redis-缓存问题
- 海思3559开发常识储备:相关名词全解
- The website with id 0 that was requested wasn‘t found. Verify the website and try again
- JMeter性能测试之相关术语及性能测试通过标准
- Go 语言入门很简单:Go 处理 XML 文件
- What are the applications of 3D visual inspection in production flow
- Embedded sig | multi OS hybrid deployment framework
猜你喜欢

【目标跟踪】|pytracking 配置 win 编译prroi_pool.pyd
![移除无效的括号[用数组模拟栈]](/img/df/0a2ae5ae40adb833d52b2dddea291b.png)
移除无效的括号[用数组模拟栈]

Biological network analysis using deep learning

SuperMap 3D SDKs_Unity插件开发——连接数据服务进行SQL查询

21. Notes on WPF binding

90.(cesium篇)cesium高度监听事件

海思3559万能平台搭建:YUV格式简介

Hisilicon 3559 sample parsing: Venc

List集合

A Generic Deep-Learning-Based Approach for Automated Surface Inspection-論文閱讀筆記
随机推荐
List集合
60 个神级 VS Code 插件!!
[cf] 803 div2 A. XOR Mixup
How to use the plug-in mechanism to gracefully encapsulate your request hook
【BUG解决】fiftyone报AttributeError: module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipeline‘错误解决方法
Talk about how to do hardware compatibility testing and quickly migrate to openeuler?
200. number of islands
[leetcode] 15. Sum of three numbers
edusoho企培版纯内网部署教程(解决播放器,上传,后台卡顿问题)
剑指 Offer 05. 替换空格: 把字符串 s 中的每个空格替换成“%20“
DMA controller 8237a
Joplin implements style changes
ES6新特性介绍
Linux系统Redis的安装
Set集合
SuperMap iClient3D 11i for Cesium三维场景中图例使用说明
Introduction to the pursuit of new subtrate source code - early May: xcm officially launched
90.(cesium篇)cesium高度监听事件
JMeter之性能测试流程及性能测试关注点
Redis cache problem