stdware / qwindowkit

Cross-platform frameless window framework for Qt. Support Windows, macOS, Linux.
Apache License 2.0
550 stars 89 forks source link

Window content extends too far towards the bottom/right #46

Closed dnlkrs closed 7 months ago

dnlkrs commented 7 months ago

OS: Windows 11 Qt: 6.5.3 UI Framework: QML, Quick Build command: cmake -B build -DCMAKE_INSTALL_PREFIX=[hidden] -G "Ninja Multi-Config" -DQT_DIR=[hidden] -DQWINDOWKIT_BUILD_QUICK=ON -DQWINDOWKIT_ENABLE_WINDOWS_SYSTEM_BORDERS=OFF

When resizing the Window using the top/left edges part of the bottom client area extends to far into the bottom, resulting in a part being hidden. This also happens when moving the window using the title bar. When starting the application using the suggested method, the window starts in this broken state. Using the bottom/right edges to resize fixes this problem.

EDIT: While the window is maximized the right side is also affected, part of the clientarea extends too far towards the right and is hidden.

I made an example app demonstrating this. The numbers 1-20 should be fully visible, but as you can see even the 19 is only half visible.

After top/left resize, moving the window: image

After bottom/right resize: image

SineStriker commented 7 months ago

Maybe it's Qt's bug, I suggest that you use Qt 6.6.2 and see if the problem still exists.

dnlkrs commented 7 months ago

Can confirm that it works with Qt 6.6.2 mingw. Do you mind explaining what the bug was (if you know it) ?

SineStriker commented 7 months ago

Can confirm that it works with Qt 6.6.2 mingw. Do you mind explaining what the bug was (if you know it) ?

Sorry, I don't know what exactly causes this bug. Qt was not robust before and had a lot of strange issues before 6.6, so it is recommended that you use the latest release.