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. HighDPI and Qt Designer
Forum Updated to NodeBB v4.3 + New Features

HighDPI and Qt Designer

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt designerhigh dpilayoutdialogs
4 Posts 3 Posters 2.8k 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.
  • W Offline
    W Offline
    witekt
    wrote on last edited by
    #1

    I am using Qt designer for creating dialogs in my application. Everything looks fine on normal display but on 4K with 200% in Windows DPI setting dialogs and elements are too small. I expect that when I set layout margins to 6 to have it 12, when I add spacer on 40 pixels it would be 80 and when I set 400x300 dialog size it would be 800x600. Same for minimum/maximum size, etc. Is there a way to achieve such results with current Qt version (I am using 5.5.1)?

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

      Hi
      On Windows, there is no scaling. you must handle it your self as far as I know.
      http://doc.qt.io/qt-5/highdpi.html

      1 Reply Last reply
      0
      • Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Better (although still not perfect on Windows) support for HighDPI comes in Qt 5.6. Here's a short description from the mailing list post.

        1 Reply Last reply
        0
        • W Offline
          W Offline
          witekt
          wrote on last edited by
          #4

          Thanks, I'll wait for 5.6 then.

          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