当前位置:网站首页>qtcanpool 知 05:无边框
qtcanpool 知 05:无边框
2022-06-28 05:27:00 【canpool】
前言
在上一讲“主题之争”中,我们知道引入主题是为了解决原生界面“丑”的问题,机智的读者可能已经根据几种手段美化了自己的界面。这些读者可能会发现一个问题:在美化后,标题栏会显得格格不入,它不受你控制,依然保持原有的朴素。
追求极致的读者,是不能容忍这样的标题栏存在的,所以他们要想方设法的去消灭它。
解决原生标题栏不受控的问题,也是 qtcanpool 产生的一个原因。目前主流的做法是:去掉原生标题栏,重新自定义标题栏。在 Qt 中去掉标题栏是通过一个窗口标志 Qt::FramelessWindowHint 设置的,这就是“无边框”的由来。
现状
qtcanpool 中的 FancyTitleBar 是基于 FramelessHelper 演变而来的,目前网上关于 FramelessHelper 的内容铺天盖地,如雨后春笋般层出不穷。
读者,甚至作者都认为,还有必要专门开主题去讲吗,直接到网上找一个用就好了,而且有的资料还很全面。作者简单看了下各家的 FramelessHelper,还有改善的地方,作者除了想输出一个通用的组件,也想把这一块再进一步学习一下,所以干就完了。
计划
由于作者要整理 Qt 无边框背后的机制、学习各家 FramelessHelper 设计原理,输出通用组件 QCustomWidget 等,所以短时间内还完不成该主题的讲解,敬请期待,也许是一个月,也许是一年……
边栏推荐
- 109. simple chat room 12: realize client-side one-to-one chat
- 2022 Western pastry (Advanced) test question simulation test platform operation
- Rxswift -- (1) create a project
- Lhasa accordion
- Simple usage of GSAP
- sqlmap工具使用手册
- How long will the PMP test results come out? You must know this!
- [leetcode] 12. Integer to Roman numeral
- How to develop the language pack in the one-to-one video chat source code
- Store inventory management system source code
猜你喜欢

Yunda's cloud based business in Taiwan construction 𞓜 practical school

WordPress zibll sub theme 6.4.1 happy version is free of authorization

数据中台:六问数据中台

jsp连接Oracle实现登录注册

How high is the gold content of grade II cost engineer certificate? Just look at this

Dart学习——函数、类
![[JVM] - memory partition in JVM](/img/d8/29a5dc0ff61e35d73f48effb858770.png)
[JVM] - memory partition in JVM

OpenSSL client programming: SSL session failure caused by an obscure function

一看就会 MotionLayout使用的几种方式

Concurrent wait/notify description
随机推荐
How to design an awesome high concurrency architecture from scratch (recommended Collection)
JSP
Jdbc的使用
解决ValueError: Iterable over raw text documents expected, string object received.
北斗三号短报文终端在大坝安全监测方案的应用
How long will the PMP test results come out? You must know this!
Pcr/qpcr research: lumiprobe dsgreen is used for real-time PCR
刘海屏手机在部分页面通过[[UIApplication sharedApplication] delegate].window.safeAreaInsets.bottom得到底部安全区高度为0问题
Qcom LCD commissioning
What does mysql---where 1=1 mean
How to develop the language pack in the one-to-one video chat source code
Simple usage of GSAP
数据中台:AI中台的实施与总结
mysql导出数据库字典成excel文件
Sqlmap tool user manual
msa. h: There is no such file or directory
Codeworks 5 questions per day (1700 for each)
TypeScript基础类型
How to do a good job of gateway high availability protection in the big promotion scenario
jsp连接oracle实现登录注册(简单)