Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Enable or Disable High DPI scaling on a specific Widget

Enable or Disable High DPI scaling on a specific Widget

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5highdpiscalingqwidget
3 Posts 2 Posters 2.0k Views
  • 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 Offline
    J Offline
    johnyang
    wrote on 23 Aug 2020, 23:39 last edited by johnyang
    #1

    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
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 24 Aug 2020, 19:25 last edited by
      #2

      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
      0
      • J Offline
        J Offline
        johnyang
        wrote on 25 Aug 2020, 01:24 last edited by johnyang
        #3

        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
        0

        2/3

        24 Aug 2020, 19:25

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved