Solved Replacement for QT4 X11Info::setAppDpiX function in QT5 ?
-
Folks,
I am porting an existing software system from QT4 to QT5. In one of the apps, they use the X11Info class setAppDpiX (and Y) functions. These no longer exist in QT5, and I could see no sign of an alternate.
Is there an alternate way to achieve this result ? Or was this functionality removed from Qt as too rare and specific a thing ?The original comment on it says it solves a font sizing problem when running on full high definition displays.
Thanks,
Dale Pennington -
@DalePennington said in Replacement for QT4 X11Info::setAppDpiX function in QT5 ?:
Is there an alternate way to achieve this result ? Or was this functionality removed from Qt as too rare and specific a thing ?
Yes, this was removed and there is no replacement.
HighDPI is directly supported by Qt nowadays. -
So just to confirm,
In Qt 4, the code set the AppDpiX and Y to 100. The equivalent it now always done by Qt, so this fix is not needed ?
Dale Pennington
-
@DalePennington said in Replacement for QT4 X11Info::setAppDpiX function in QT5 ?:
The equivalent it now always done by Qt
No, this is not true - I said HighDPI is supported out of the box by Qt5.
-
I guess for now we will need to experiment to see how to get this work right (I looked at the HighDPI page in the documentation), and otherwise see what we might need to do.
If we get more questions I will be sure to ask again.
Thanks,
Dale