stdware / qwindowkit

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

Windows11 display scalin #135

Open Skm1221 opened 1 week ago

Skm1221 commented 1 week ago

First of all, thank you for providing such a great library.

While using it, I encountered an issue and I am leaving this message to see if there is a solution.

When changing the Windows display scale, the height of the example qtquick code changes.

For example: If you switch the scale like this: 100% > 225% > 100% > 225% > 100%, you can visibly see the height of the window decrease each time.

Question: Is there any way to fix this problem?

wangwenx190 commented 1 week ago

Qt bug introduced in Qt 6.2, fixed in 6.4 or 6.5. Please upgrade your Qt version to a newer version.

Skm1221 commented 1 week ago

Thank you for your fast response!!

My qt version is 6.7.2

I tested with 6.6.3 and 6.7.2, and both results were the same

Should I downgrade to 6.5??

SineStriker commented 1 week ago

Thank you for your fast response!!

My qt version is 6.7.2

I tested with 6.6.3 and 6.7.2, and both results were the same

Should I downgrade to 6.5??

Does the problem still exist in Qt 6.6 or 6.7?

Skm1221 commented 1 week ago

Yes, it was. Versions were 6.6.3 and 6.7.2

I didn't test with qwidget yet.

I'll test it tomorrow

Skm1221 commented 5 days ago

Sorry for late test. I tested qwidget example with Qt 6.6.3 and checked decreasing of window height!

wangwenx190 commented 3 days ago

Anyway, it's a Qt bug and it's I who pushed a fix for upstream Qt, so it should be fixed already. But now it seems it got broken again later for some reason.