wangwenx190 / framelesshelper

Project moved to: https://github.com/stdware/qwindowkit Cross-platform window customization framework for Qt Widgets and Qt Quick. Supports Windows, Linux and macOS.
MIT License
846 stars 202 forks source link

Qt 6.6.0 Windows Unable to set geometry Issue #320

Open ollie-dawes opened 10 months ago

ollie-dawes commented 10 months ago

Tested out framelesshelper width Qt 6.6.0 today and I see the following issue. If you run the quick or widget examples and drag the window to a second monitor then the window will fail to resize and you will be left with a incorrectly rendered space at the bottom of the window which is suspiciously the same size as the title bar.

Quick window after moving to second window: image

The widget example will fix itself after about a second but the quick example requires you to resize the window for the issue to go away.

The following warning is logged every time I move the window between monitors:

[2023/11/11 13:31:44.170] <WARNING> QWindowsWindow::setGeometry: Unable to set geometry 160x600+1200+620 (frame: 176x608+1192+620) on ApplicationWindow_QMLTYPE_2/"" on "DELL U2715H". Resulting geometry: 160x631+1200+589 (frame: 176x639+1192+589) margins: 8, 0, 8, 8)

Note that the issue does not present it self if I switch back down to Qt 6.5.0.


Environment: Edition Windows 10 Pro Version 22H2 Installed on ‎13/‎02/‎2021 OS build 19045.3570 Experience Windows Feature Experience Pack 1000.19052.1000.0

wangwenx190 commented 10 months ago

Qt 6.5.3 & 6.6.0 has bug which is fixed in later versions: 6.5.4 & 6.6.1. This is not a FramelessHelper bug.

wangwenx190 commented 10 months ago

I can't "fix" this bug because it's very hard to workaround, please downgrade your Qt version or build a newer version from source yourself.

ollie-dawes commented 10 months ago

Gotcha, if this is a Qt issue then feel free to close.