Skip to content
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

QT_DEVICE_PIXEL_RATIO is deprecated #1038

Closed
drdanz opened this issue Dec 20, 2016 · 1 comment
Closed

QT_DEVICE_PIXEL_RATIO is deprecated #1038

drdanz opened this issue Dec 20, 2016 · 1 comment

Comments

@drdanz
Copy link
Member

drdanz commented Dec 20, 2016

@claudiofantacci wrote on #837

I'm writing here concerning about QT_DEVICE_PIXEL_RATIO qtputenv option.

Under macOS, QT version 5.7.0 (from brew), launching yaprdataplayer, yaprview, yarpmotorgui, the following warning is raised:

Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use: 
    QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors. 
    QT_SCREEN_SCALE_FACTORS to set per-screen factors. 
    QT_SCALE_FACTOR to set the application global scale factor.

Probably QT_AUTO_SCREEN_SCALE_FACTOR set to 1 (boolean true) will make the job done.

Ref: http://doc.qt.io/qt-5/highdpi.html#high-dpi-support-in-qt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants