-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems displaying fonts in 4k monitors #837
Comments
Checking the documentation more carefully we need to ensure that the line: qputenv("QT_DEVICE_PIXEL_RATIO",QByteArray("2")); does not cause problems to systems with low-resolution. More importantly this feature is deprecated in qt 5.6, so we need to make it version specific and remove it once we stop supporting qt 5.4 and (probably) 5.5. |
These commits have been reverted because did mess up the visualization on normal screens. As reported by @pattacini for testing. They did work on my VM Linux unbuntu 10.04. |
Looks like the safest solution at the moment is to leave to the user to set the environment variable: QT_DEVICE_PIXEL_RATIO = 2 This can be done at the system level (recommended) in the control panel or on each terminal. |
Proper fix should be done using new features in qt-5.6. @mbrunettini maybe in the next release of the binaries we should replace qt-5.4 with qt-5.6 . @drdanz, @aitek4iit what do you think? |
Quick update: together with @lornat75 we've tested that |
…uis. Not touching yarpscope because it already works fine and yarpmanager++ because this settings badly affects the graphical representation of the applications.
…uis. Not touching yarpscope because it already works fine and yarpmanager++ because this settings badly affects the graphical representation of the applications.
…uis. Not touching yarpscope because it already works fine and yarpmanager++ because this settings badly affects the graphical representation of the applications.
…uis. Not touching yarpscope because it already works fine and yarpmanager++ because this settings badly affects the graphical representation of the applications.
…uis. Not touching yarpscope because it already works fine and yarpmanager++ because this settings badly affects the graphical representation of the applications.
@pattacini I have updated the pull request, would you mind give it a try? |
fixing #837 setting QT_DEVICE_PIXEL_RATIO = auto for some guis.
@lornat75 it works nicely; just merged! ( |
Ok. Thanks, leaving this open until we fix the problem in Qt 5.6 using appropriate functions. |
Ok, I will update to Qt 5.6 where it is supported. |
Yes the AUTO flag should do the trick for both resolution and I think Qt 5.6 wolud manage better the high dpi resolutions beacuse in the 5.4 version this feature was only a beta. |
QT 5.6 is only avavilabe on windows with the following versions: |
I'm writing here concerning about Under macOS, QT version 5.7.0 (from brew), launching
Probably Ref: http://doc.qt.io/qt-5/highdpi.html#high-dpi-support-in-qt |
@claudiofantacci Opened a new issue, see #1038 |
Changes introduced in #1200 should solve, for now I close this issue, if someone encounter some problems I will re-open it |
All guis have problems displaying fonts in high-res monitors.
The problems is probably this one:
http://doc.qt.io/qt-5/highdpi.html
can be fixed by adding qputenv("QT_DEVICE_PIXEL_RATIO", QByteArray("2")); in the main.
Thanks @aitek4iit
The text was updated successfully, but these errors were encountered: