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. How to disable the system DPI in Qt Designer 6.3.1 when i set ui‘s size?
Forum Updated to NodeBB v4.3 + New Features

How to disable the system DPI in Qt Designer 6.3.1 when i set ui‘s size?

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 2 Posters 941 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.
  • mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi
    Make a shortcut to designer.exe and add
    pathtodeigner.exe -platform windows:dpiawareness=0

    and see if that helps.

    M 1 Reply Last reply
    0
    • mrjjM mrjj

      Hi
      Make a shortcut to designer.exe and add
      pathtodeigner.exe -platform windows:dpiawareness=0

      and see if that helps.

      M Offline
      M Offline
      Miko
      wrote on last edited by
      #3

      @mrjj I don't understand, how to make a 'pathtodesigner.exe'? And 'platform windows:dpiawareness=0' is a .txt file??

      mrjjM 1 Reply Last reply
      0
      • M Miko

        @mrjj I don't understand, how to make a 'pathtodesigner.exe'? And 'platform windows:dpiawareness=0' is a .txt file??

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

        @Miko
        Are you on windows ?

        if yes
        then goto the folder where designer.exe is.
        Then drag the exe with right mouse (just a little bit, then release right mouse)
        alt text
        and create a shortcut
        then EDIT the shortcut ( right click and choose properties )
        alt text

        start designer with the shortcut

        M 1 Reply Last reply
        1
        • mrjjM mrjj

          @Miko
          Are you on windows ?

          if yes
          then goto the folder where designer.exe is.
          Then drag the exe with right mouse (just a little bit, then release right mouse)
          alt text
          and create a shortcut
          then EDIT the shortcut ( right click and choose properties )
          alt text

          start designer with the shortcut

          M Offline
          M Offline
          Miko
          wrote on last edited by Miko
          #5

          @mrjj
          First of all, thank you a lot for your help. And I use Win10.
          I am sorry but your method didn't work. I seted the shortcut like that:
          069e27fb-ccce-4f1f-a049-49eea07573cf-image.png
          When i opened QtDesigner, the software became blurred and the size of a Ui i created still scaled to 125%.
          屏幕截图 2022-08-10 114236.png
          I used PySide2 before, Qtdesigner 5 can perfectly apply the size what i set to display, no matter on what DPI or Resolution. Honestly, I don't like the default scale policy in new Qt6.

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

            hi
            ok. well it was worth a shot.
            So while it did have an effect on the actual Designer, it seems not to affect the preview window.

            so outside of compiling your own Designer.exe Im not sure we can make it ignore the font scale.

            M 1 Reply Last reply
            0
            • mrjjM mrjj

              hi
              ok. well it was worth a shot.
              So while it did have an effect on the actual Designer, it seems not to affect the preview window.

              so outside of compiling your own Designer.exe Im not sure we can make it ignore the font scale.

              M Offline
              M Offline
              Miko
              wrote on last edited by Miko
              #7

              @mrjj
              Haha compiling a new Designer.exe is too difficult for me. Im afraid that i won't try it.
              Maybe the next update release can add an option to choose the scale policy?

              mrjjM 1 Reply Last reply
              0
              • M Miko

                @mrjj
                Haha compiling a new Designer.exe is too difficult for me. Im afraid that i won't try it.
                Maybe the next update release can add an option to choose the scale policy?

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

                @Miko
                Well its also big work if you don't have any c++ compilers installed.

                -Maybe the next update release can add an option to choose the scale policy?

                This is actually a user forum so we don't really know what the Qt devs are planning.

                You can however, open a feature request at
                https://bugreports.qt.io

                Also, I don't use the standalone designer much with c++ so Im not sure how it generates codes.
                So Im guessing you cant use Qtdesigner 5 as it then will generate pyside2/older code ?

                M 1 Reply Last reply
                0
                • mrjjM mrjj

                  @Miko
                  Well its also big work if you don't have any c++ compilers installed.

                  -Maybe the next update release can add an option to choose the scale policy?

                  This is actually a user forum so we don't really know what the Qt devs are planning.

                  You can however, open a feature request at
                  https://bugreports.qt.io

                  Also, I don't use the standalone designer much with c++ so Im not sure how it generates codes.
                  So Im guessing you cant use Qtdesigner 5 as it then will generate pyside2/older code ?

                  M Offline
                  M Offline
                  Miko
                  wrote on last edited by
                  #9

                  @mrjj
                  QtD 5 works well and generates PyQt5/Pyside2 code perfectly.
                  For why i use PySide 6, I just want to try the newest version of Qt (maybe it looks better?).
                  I don't know how to ask Qt's team to add a feature, hope later someone can solve this.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Miko
                    wrote on last edited by
                    #10

                    Update an information:
                    https://www.pythonguis.com/faq/pyside2-vs-pyside6/#:~:text=non-widgets)%20applications.-,High%20DPI%20Scaling,-The%20high%20DPI

                    I really hate this new change.

                    mrjjM 1 Reply Last reply
                    1
                    • M Miko

                      Update an information:
                      https://www.pythonguis.com/faq/pyside2-vs-pyside6/#:~:text=non-widgets)%20applications.-,High%20DPI%20Scaling,-The%20high%20DPI

                      I really hate this new change.

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

                      @Miko
                      Yes its sad its not an option.

                      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