当前位置:网站首页>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边栏推荐
- 图解使用Navicat for MySQL创建存储过程
- ES6新特性介绍
- SuperMap iDesktop 常见倾斜数据处理全流程解析
- MySQL判断执行条件为NULL时,返回0,出错问题解决 Incorrect parameter count in the call to native function ‘ISNULL‘,
- 通过EF Core框架根据SQL Server数据库表生成实体类
- "Xiaodeng" user personal data management in operation and maintenance
- Getting started with the go language is simple: go handles XML files
- 【目标跟踪】|pytracking 配置 win 编译prroi_pool.pyd
- 药店管理系统
- Flutter 从零开始 007 输入框
猜你喜欢

Ensemble de cartes

Embedded sig | multi OS hybrid deployment framework

SuperMap iclient3d for webgl loading TMS tiles

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

Tencent two sides: @bean and @component are used on the same class. What happens?

"Xiaodeng" user personal data management in operation and maintenance

Redis - problèmes de cache

Biological network analysis using deep learning

Vision based robot grasping: from object localization, object pose estimation to parallel gripper grasping estimation

Redis installation on Linux system
随机推荐
【LeetCode】15、三数之和
解决服务器重装无法通过ssh连接的问题
SuperMap 3D SDKs_Unity插件开发——连接数据服务进行SQL查询
Iserver publishing es service query setting maximum return quantity
Essay: Research on smart home scheme
The website with id 0 that was requested wasn‘t found. Verify the website and try again
"Xiaodeng" user personal data management in operation and maintenance
Beego development blog system learning (II)
SuperMap iDesktop 常见倾斜数据处理全流程解析
Sublist3r error reporting solution
How to use the plug-in mechanism to gracefully encapsulate your request hook
Joplin实现样式更改
60 divine vs Code plug-ins!!
通过EF Core框架根据SQL Server数据库表生成实体类
3D视觉检测在生产流水的应用有哪些
浅谈 JMeter 运行原理
Some commonly used hardware information of the server (constantly updated)
Shutter 007 input field from zero
List集合
浏览器播放rtsp视频,基于nodeJs