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
849 stars 202 forks source link

Window Content keeps getting clipped when resizing #310

Closed Qmlio closed 1 year ago

Qmlio commented 1 year ago

https://github.com/wangwenx190/framelesshelper/assets/65741732/7f5924ae-1c01-4877-9087-cb8577ede20c

Greetings. Am really glad about this project, but while using the FramelessHelper in qml, every time i try to resize the window, its content gets clipped especially around the footer and header of the ApplicationWindow.

Steps to reproduce Using the FramelessHelperDemo-Quick examples project, add a Label and position it at the bottom or add a footer to the ApplicationWindow, run the project and try resizing the window from from the top.

wangwenx190 commented 1 year ago

Looks like a Qt bug. What's your Qt version? And are you using the latest code from the main branch?

Qmlio commented 1 year ago

Am using Qt 6.5.3 , Visual Studio 2019. A using the latest code from the branch because i fetched it two days back!

wangwenx190 commented 1 year ago

Qt 6.5.3 and Qt 6.6.0 have a bug which ignores the custom margins I set. This bug is fixed in 6.5.4 and 6.6.1 (not released yet).

Qmlio commented 1 year ago

I have noticed its a Qt 6.5.3 bug, because i have tested with Qt 6.5.1 and Qt 6.3.2 and every thing worked as expected, indeed you were right.. thanks for the help

wangwenx190 commented 1 year ago

Please check https://github.com/wangwenx190/framelesshelper/commit/33a6f0df91010473cc05b4c980151c4a2b329571

Qmlio commented 1 year ago

Ah Yes!....Thanks kindly

wangwenx190 commented 1 year ago

And the upstream fix: https://github.com/qt/qtbase/commit/58a6a92f688fccf9e841dea6976409d97a6dd3b0

Qmlio commented 1 year ago

I see.....thanks again!