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. What are ways to disable DPI Scaling on compiled QT applications?
Forum Updated to NodeBB v4.3 + New Features

What are ways to disable DPI Scaling on compiled QT applications?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 956 Views 1 Watching
  • 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.
  • karl-policeK Offline
    karl-policeK Offline
    karl-police
    wrote on last edited by karl-police
    #1

    So there's an application that has DPI Scaling. And the regular Windows settings method "Overriding DPI Scale" doesn't work on it. Not sure if that's an issue with the Windows version, e.g. Windows 10 or 11.

    What are other ways to disable DPI Scaling on QT compiled applications? Because I am trying to disable the DPI Scaling on it.

    Like, can a .dll be modified and tricked a little bit to disable the DPI Scaling. Like, I really want to disable the DPI Scaling on the application.

     

    What is ment with DPI Scaling, is that the UI and everything else adapts to the Windows DPI Scale setting value.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You can find several options in the High DPI chapter in Qt's documentation.

      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
      1
      • karl-policeK Offline
        karl-policeK Offline
        karl-police
        wrote on last edited by
        #3

        I've tried to create a qt.conf with those values described there in the same path of the compiled .exe that I did not compile. But that didn't disable the DPI Scaling of the application.

        Are there other things I can try?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What does your file contain ?
          Which version of Qt are you using ?

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

          karl-policeK 1 Reply Last reply
          0
          • SGaistS SGaist

            What does your file contain ?
            Which version of Qt are you using ?

            karl-policeK Offline
            karl-policeK Offline
            karl-police
            wrote on last edited by karl-police
            #5

            @SGaist It's not my application

            It could be Qt5 there's a bunch of Qt5 .dll's in there, like Qt5Core.dll
            Using something I figured out it's Qt 5.15.3.0

            I just want to disable the DPI Scaling from the compiled Qt application. I do not have the source code, nor does changing the DPI Scale settings on Windows disable the DPI Scaling.

            1 Reply Last reply
            0
            • hskoglundH Offline
              hskoglundH Offline
              hskoglund
              wrote on last edited by
              #6

              Hi, did you also triy
              "... set the QT_AUTO_SCREEN_SCALE_FACTOR environment variable to 1. "
              (it's at the bottom of the High-DPI page from @SGaist 's link)

              1 Reply Last reply
              0

              • Login

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