Quote:
Originally Posted by kovidgoyal
|
Found the solution on their
porting guide.
Quote:
Qt 6 changes the default scale factor rounding policy from Qt::HighDpiScaleFactorRoundingPolicy::Round to Qt::HighDpiScaleFactorRoundingPolicy::PassThrough in order to track operating system DPI settings accurately. Applications that use Qt Widgets may encounter graphical glitches at non-integer scale factors, for example on Windows with a display configured for 175%. In that case, set the rounding policy to Round to restore Qt 5 behavior.
|
Since I use a non-integer scale factor on my windows machine, this was causing the problem. So, to correct it, i restored Qt 5 behavior setting the policy to
Round:
Code:
QApplication.setHighDpiScaleFactorRoundingPolicy(QtCore.Qt.HighDpiScaleFactorRoundingPolicy.Round)