Details
-
Bug
-
Resolution: Won't Do
-
P1: Critical
-
None
-
6.2.4, 6.5.1, 6.6.0
-
None
Description
Native windows not properly displayed when QT_SCALE_FACTOR/QT_FONT_DPI set
The image below contains a widget and a single QPushButton in it. The button is just an example, the important thing that it has Qt::WA_NativeWindow attribute and QT_SCALE_FACTOR != 1.
This is a regression from Qt5. I was able to reproduce it in 6.2.4, 6.5.1, 6.6.0.
Sample project attached. Compile with Qt6 and run with QT_SCALE_FACTOR=2, e.g.,
$ QT_SCALE_FACTOR=2 open proj.app