Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt configuration



  • I install Qt IDE. then create a sample project. When I run it said:
    Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use:
    QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors."

    How to fix


  • Moderators

    @hle12 said in Qt configuration:

    Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use:
    QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors."

    exactly as the warning states.
    Do you set the QT_DEVICE_PIXEL_RATIO env variable somehwere in your code / environment?
    You may also read this

    What Qt version are you using?


Log in to reply