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

Enable or Disable High DPI scaling on a specific Widget



  • I know we can enable High DPI scaling for the entire application (https://doc.qt.io/qt-5/highdpi.html). However, if I want to disable this scaling effect for a particular widget (e.g. a frame or widget displaying a picture etc), is there a way to do that?


  • Lifetime Qt Champion

    Hi,

    I am not aware of that possibility.

    Out of curiosity, what is your use case ?



  • In one of my project, a bit of resolution seems to be lost when scaling (150%). It is plotting a complicated graph for signal processing. We are thinking whether we can just plot the graph according to the scaling factor (e.g. running the math calculation ourslef and generate a graph double the size for high resolution etc) and not to scale this part of the widget by using the high dpi setting.