Comments (7)
手动resize一下就好了,可能是qt的bug
from framelesshelper.
刚刚尝试了一下,在moveEvent中使用resize
resize(size()); 没有效果
resize(width(), height() + 1); 才可以
但是每次移动,都会设置一下大小,就有点疑惑,这是目前的最优方案嘛,还是我操作有误呢。不吝赐教。
from framelesshelper.
我测试得到的结论是这样的,单个显示器不存在这个问题,多个显示器,跨显示器移动窗口时大概率会遇到这个问题,但也不是必现的。这个问题跟自定义边框没什么关系,你可以用一个正常的qt窗口试试,也会遇到这个问题。我看了很多开源项目的源码,发现基本没有处理这个问题的,所以我建议你也不用去管。如果你想解决,可以监听qt的screenChanged信号,当屏幕发生改变时手动触发一次resize,和原来大小相同肯定没用,但为了尽可能减小用户的感知,可以只改变一个像素。这也是临时的解决方案,最终的解决方案还是要qt自身做出修改。
from framelesshelper.
辛苦,thanks.
from framelesshelper.
这个问题我去年就发现了,不过这是个普遍问题,qt程序都存在,也没见有去解决的,你可以不用管
from framelesshelper.
FYI @wangwenx190 this bug is back when using code from latest commit (with the "widget" example)
from framelesshelper.
FYI @wangwenx190 this bug is back when using code from latest commit (with the "widget" example)
The word "back" may not be accurate. The issue always exists. We indeed fixed this issue long time ago. But I was wondering the performance and reliability of our workaround, so I removed it some time ago, last year some day. I think we may just live with it because most frameless Qt applications have this 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.