Comments (5)
win10+qt5.12.4
framelessquickhelper.h 中Q_DISABLE_COPY_MOVE不可用
不好意思,这个宏5.13才引入,我刚刚已经修复了这个问题。代码中没有用到很新的API,只要不低于5.6,都是能编译运行的。
建议在readme中写清mac的qt支持得版本
Linux和macOS的代码用的是Qt 5.15新引入的startSystemMove
和startSystemResize
这两个API,所以版本固定死了,不能低于5.15。这个API是跨平台的,支持Win+Linux+macOS,如果不用这两个API,要针对每个平台自行实现,过于复杂。为了简便,就直接用了。unix平台的自述文件是另一个,README_unix.md
,里面有版本要求。
范例代码:data.titlebarHeight = 30;,拼写错误
不好意思了,这个变量中途改了名,忘记更新文档了。已经修复。
顺便问下,qt5.15的无边框特性够完善吗?
你指的是Qt本身对无边框的支持吗?Qt的话,由于5.15引入了我上面提到的那两个API,所以无边框特别好做了,但在Windows上效果很不理想,因为去掉边框还是用FramelessWindowHint,而这个flag在Windows平台会导致窗口变成弹出窗口,正常窗口该有的特性都没了。如果不在意的话倒无所谓,但如果要做到接近完美,就一定不能这样干,要和这个repo一样,拦截win32消息自行处理。在Linux和macOS上比Windows强一些,因为很多东西都是窗口管理器负责的,至少窗口动画是不会丢掉的,这和Windows不一样。但由于我自己没有mac,所以没法实际测试macOS上的效果,只是从理论上推测。
from framelesshelper.
那个宏的问题已经解决了,现在应该只要不低于5.6都能编译了。
from framelesshelper.
所有提到的问题都已经解决了,issue我先关了。如果再发现新的问题,你可以重新打开这个issue,或者再开一个新的。
from framelesshelper.
试了一下,仅仅是提供了多了两个api,还有很多工作需要处理。
对以上的回答和工作表示感谢!
from framelesshelper.
试了一下,仅仅是提供了多了两个api,还有很多工作需要处理。
这两个API是完全跨平台的,支持所有主流桌面平台,我看过这个特性的补丁,代码大几千行,如果你真要完全自己去做,很不划算的。有了这两个API,工作量已经很小了,我那个UNIX平台的代码,一共才400行左右,就已经比较完善了,这在以前的版本是完全做不到的。
对以上的回答和工作表示感谢!
如果能帮到你,我也很高兴。如果遇到了新的问题,或者有了新的需求,欢迎开新的issue,大家一起讨论。
from framelesshelper.
Related Issues (20)
- Global::Option::ForceHideWindowFrameBorder causes the frame border to be weird on Windows HOT 10
- 请教关于Qmainwindow的布局问题 HOT 4
- 编译问题 HOT 2
- Qt 6.6.0 Windows Unable to set geometry Issue HOT 3
- qt 6.5.3 窗口拖动改变大小时控件位置不正确 HOT 6
- ubuntu linux下用qt5.15.2版本编译报错
- MacOS最后一个窗口销毁再新建窗口崩溃分析反馈,窗口全屏状态修改分辨率异常问题求助 HOT 5
- Unable to restore window state after minimizing it when using the ApplicationWindow component from Qt controls HOT 3
- Windows下标题栏按钮tooltip重复显示 HOT 3
- closeEvent事件,对QCloseEvent事件进行ignore后,原来无边框的窗体会出现边框 HOT 2
- 把Q_OBJECT包裹在其它宏里面后,qmake编译失败 HOT 1
- quick 最小化问题
- Build error macOS HOT 1
- Build error in apple M1, when Qt is not a universal version.
- 苹果M芯片编译错误 HOT 1
- Win11 5.15.2 main 分支下的 版本
- QOpenGLFunctions 自定义控件显示问题
- 【bug】windows10下最大化和恢复按钮不显示
- 使用 QWebEngineView 之后标题栏按钮无法交互 HOT 18
- 代码问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framelesshelper.