mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
Use the "Round" HiDPI scaling policy (the default in Qt5) in Qt6
As of Qt 6.7.2 the rendering is completely broken and full of various render artifacts when the default "PassThrough" policy is used and the user has a fractional screen size like 125% set.
This commit is contained in:
parent
23c398caf7
commit
225e6da48b
@ -12,6 +12,8 @@ int main(int argc, char *argv[])
|
|||||||
qRegisterMetaTypeStreamOperators<TimeZoneInfo>("TimeZoneInfo");
|
qRegisterMetaTypeStreamOperators<TimeZoneInfo>("TimeZoneInfo");
|
||||||
#else // QT6
|
#else // QT6
|
||||||
qRegisterMetaType<TimeZoneInfo>("TimeZoneInfo");
|
qRegisterMetaType<TimeZoneInfo>("TimeZoneInfo");
|
||||||
|
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(
|
||||||
|
Qt::HighDpiScaleFactorRoundingPolicy::Round);
|
||||||
#endif // QT6
|
#endif // QT6
|
||||||
|
|
||||||
QSurfaceFormat fmt;
|
QSurfaceFormat fmt;
|
||||||
|
Loading…
Reference in New Issue
Block a user