Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Enable or Disable High DPI scaling on a specific Widget

    General and Desktop
    qt5 highdpi scaling qwidget
    2
    3
    1171
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      johnyang last edited by johnyang

      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?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        I am not aware of that possibility.

        Out of curiosity, what is your use case ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • J
          johnyang last edited by johnyang

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post