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. Qt Built Software Device Resolution Inquiry
Forum Updated to NodeBB v4.3 + New Features

Qt Built Software Device Resolution Inquiry

Scheduled Pinned Locked Moved Unsolved General and Desktop
pixeldeviceresolutiondpiscale
6 Posts 3 Posters 2.2k Views 2 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.
  • J Offline
    J Offline
    JVR Orane
    wrote on last edited by JVR Orane
    #1

    How can we get Qt to scale the software being built accordingly to the respected dpi per display resolution screen (ex from a 1080 to a 4k ), on Windows OS? unsure of where to find the options to be changed on the windows to enable it to scale when being run on different user screen resolutions.

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

      Hi and welcome to devnet,

      Are you asking for something like a compile time flag ?

      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
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        Do you mean something like this ?
        http://doc.qt.io/qt-5/highdpi.html

        (if not compile time)

        1 Reply Last reply
        1
        • J Offline
          J Offline
          JVR Orane
          wrote on last edited by
          #4

          @mrjj not exactly. What i'm asking is if there is a way to specify a virtual resolution and virtual dpi so i can see what my application will look like on a 4k screen even though the resolution of my screen is 1080p.

          mrjjM 1 Reply Last reply
          0
          • J JVR Orane

            @mrjj not exactly. What i'm asking is if there is a way to specify a virtual resolution and virtual dpi so i can see what my application will look like on a 4k screen even though the resolution of my screen is 1080p.

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @JVR-Orane
            ahh. as far as i know , not really.
            You could adjust QT_SCALE_FACTOR , but its not really what you are after.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              JVR Orane
              wrote on last edited by
              #6

              @mrjj yeah its not, but thanks though

              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