当前位置:网站首页>qtcanpool 知 05:无边框
qtcanpool 知 05:无边框
2022-06-28 05:27:00 【canpool】
前言
在上一讲“主题之争”中,我们知道引入主题是为了解决原生界面“丑”的问题,机智的读者可能已经根据几种手段美化了自己的界面。这些读者可能会发现一个问题:在美化后,标题栏会显得格格不入,它不受你控制,依然保持原有的朴素。
追求极致的读者,是不能容忍这样的标题栏存在的,所以他们要想方设法的去消灭它。
解决原生标题栏不受控的问题,也是 qtcanpool 产生的一个原因。目前主流的做法是:去掉原生标题栏,重新自定义标题栏。在 Qt 中去掉标题栏是通过一个窗口标志 Qt::FramelessWindowHint 设置的,这就是“无边框”的由来。
现状
qtcanpool 中的 FancyTitleBar 是基于 FramelessHelper 演变而来的,目前网上关于 FramelessHelper 的内容铺天盖地,如雨后春笋般层出不穷。
读者,甚至作者都认为,还有必要专门开主题去讲吗,直接到网上找一个用就好了,而且有的资料还很全面。作者简单看了下各家的 FramelessHelper,还有改善的地方,作者除了想输出一个通用的组件,也想把这一块再进一步学习一下,所以干就完了。
计划
由于作者要整理 Qt 无边框背后的机制、学习各家 FramelessHelper 设计原理,输出通用组件 QCustomWidget 等,所以短时间内还完不成该主题的讲解,敬请期待,也许是一个月,也许是一年……
边栏推荐
- Install kubebuilder
- Docker installs mysql5.7 and starts binlog
- 線條動畫
- 线条动画
- Sharing | intelligent environmental protection - ecological civilization informatization solution (PDF attached)
- Function reentry caused by Keil C51's data overlaying mechanism
- sqlmap工具使用手册
- MCLK configuration of Qualcomm platform camera
- Pcr/qpcr research: lumiprobe dsgreen is used for real-time PCR
- Wedding studio portal applet based on wechat applet
猜你喜欢
![[Verilog quick start of Niuke online question brushing series] ~ one out of four multiplexer](/img/1f/becda82f3136678c58dd8ed7bec8fe.png)
[Verilog quick start of Niuke online question brushing series] ~ one out of four multiplexer

Biovendor sRAGE protein solution

MySQL 45讲 | 05 深入浅出索引(下)

A guide to P2P network penetration (stun) for metartc5.0 programming

What does mysql---where 1=1 mean

Online yaml to JSON tool

Quartus replication IP core

codeforces每日5题(均1700)

电子邮件营销的优势在哪里?为什么shopline独立站卖家如此重视?

sqlmap工具使用手册
随机推荐
How to develop the language pack in the one-to-one video chat source code
Why is point shield cloud forced to quit playing?
What does mysql---where 1=1 mean
数据中台:AI中台的实施与总结
ERP软件公司选型的重要根据
What are functions in C language? What is the difference between functions in programming and functions in mathematics? Understanding functions in programming languages
Study on modified triphosphate: lumiprobe amino-11-ddutp
MySQL 45 talk | 05 explain the index in simple terms (Part 2)
Oracle基础知识总结
Leecode question brushing-ii
Unity delegate
Disable right-click, keyboard open console events
To batch add background pictures and color changing effects to videos
[Linux] - using xshell to install MySQL on Linux and realize the deployment of webapp
数据仓库:分层设计详解
一看就会 MotionLayout使用的几种方式
数据中台:一篇带你深入浅出了解数据中台
When excel copies the contents of a row, the columns are separated by the tab "\t"
jq图片放大器
Keil C51的Data Overlaying机制导致的函数重入问题