Comments (20)
Several people told me about this issue, it seems the startSystemResize()
function is unusable on macOS.
from framelesshelper.
See: https://doc.qt.io/qt-5/qwindow.html#startSystemResize
from framelesshelper.
Yeah, thanks for pointing the issue out. Is there a way to track those mouse movements on the edge manually?
It seems we can check against system resize support by doing this:
if (!window.startSystemResize(edges)) {
// fallback code for setting window.width/height manually
}
It should return false if not supported.
from framelesshelper.
Yeah, thanks for pointing the issue out. Is there a way to track those mouse movements on the edge manually?
It seems we can check against system resize support by doing this:if (!window.startSystemResize(edges)) {
// fallback code for setting window.width/height manually
}It should return false if not supported.
Sounds reasonable. I'll try to implement this.
from framelesshelper.
Now I know the frameless window can't be resized, but can it be moved by dragging the custom title bar?
from framelesshelper.
New commit uploaded. Can you test the latest code?
from framelesshelper.
If this issue still exists, please inform me.
from framelesshelper.
Now I know the frameless window can't be resized, but can it be moved by dragging the custom title bar?
Yes, it works. It also gets resized by double clicking on the titlebar.
If this issue still exists, please inform me.
Yes, the issue still exists. It does resize now, but does not resize with delta, it jumps to a certain extent. The video is below.
https://youtu.be/l3NAXiTq9Ow
from framelesshelper.
Now I know the frameless window can't be resized, but can it be moved by dragging the custom title bar?
Yes, it works. It also gets resized by double clicking on the titlebar.
If this issue still exists, please inform me.
Yes, the issue still exists. It does resize now, but does not resize with delta, it jumps to a certain extent. The video is below.
https://youtu.be/l3NAXiTq9Ow
OK, I see. I'm working on it.
from framelesshelper.
New commit uploaded. Can you test the latest code? I suggest you try more test cases: top bottom left right top-left top-right bottom-left bottom-right
from framelesshelper.
I don't have a mac so I'm relying on my imagination to debug this code. I want to see a screen record if possible, thanks.
from framelesshelper.
New commit uploaded. Can you test the latest code? I suggest you try more test cases: top bottom left right top-left top-right bottom-left bottom-right
Nope. Very wrong now. I suggest you turn off system resize logic for your case temporarily, so you can test it on your machine more easily.
from framelesshelper.
New commit uploaded. Can you test the latest code? I suggest you try more test cases: top bottom left right top-left top-right bottom-left bottom-right
Nope. Very wrong now. I suggest you turn off system resize logic for your case temporarily, so you can test it on your machine more easily.
It does look very strange now. Working on it.
from framelesshelper.
I made a bug report to the Qt company: https://bugreports.qt.io/browse/QTBUG-88218
If the Qt company are not willing to fix it in the near future, I'll implemenet an alternative solution.
from framelesshelper.
I made a bug report to the Qt company: https://bugreports.qt.io/browse/QTBUG-88218
If the Qt company are not willing to fix it in the near future, I'll implemenet an alternative solution.
Afaik it is not supported on other platforms as well. The other machine this was tested on running on Debian/GNOME/X11. Also returns false. Works on Windows though.
from framelesshelper.
Afaik it is not supported on other platforms as well. The other machine this was tested on running on Debian/GNOME/X11. Also returns false.
I tested this repo on Fedora KDE (X11) and it works well. And it should not return false on Linux:
from framelesshelper.
Afaik it is not supported on other platforms as well. The other machine this was tested on running on Debian/GNOME/X11. Also returns false.
I tested this repo on Fedora KDE (X11) and it works well. And it should not return false on Linux:
Maybe the issue is tied to GNOME environment?
from framelesshelper.
Maybe the issue is tied to GNOME environment?
Not sure. I didn't test in GNOME. One point: recent versions of GNOME is using Wayland instead of X11.
from framelesshelper.
Sadly the Qt engineer told me it's not possible to implement startSystemResize()
on macOS. I'm not a macOS developer, so I don't know why, but it sounds like a technical limitation.
from framelesshelper.
Fixed in 2.0
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.