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. Font scale display problem under windows 8.1 /10, Qt5.3.2

Font scale display problem under windows 8.1 /10, Qt5.3.2

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 2 Posters 3.5k 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 mrjj
    #2

    Hi
    Qt 5.6 has better support for high DPI
    http://blog.qt.io/blog/2016/01/26/high-dpi-support-in-qt-5-6/

    You can maybe use QT_AUTO_SCREEN_SCALE_FACTOR
    or other features to tweak your app.

    Since its due to the font scale and not so much DPI, its not
    just upgrade and it cures all -- .. but you get better toolbox. :)

    1 Reply Last reply
    2
    • S Offline
      S Offline
      stephane78
      wrote on last edited by stephane78
      #3

      Ok,
      thank you mrjj.
      I will try it with Qt5.6 and with this funtionality.
      But I have another question: I have looked at the documentation and should I use a class that derivate from QGuiApplication or can I use a class that derivates from QApplication to use this environnement variable ?
      best regards

      1 Reply Last reply
      1
      • S Offline
        S Offline
        stephane78
        wrote on last edited by
        #4

        OK QApplication derivates from QGuiApplication so there is no problem.
        I will try it with Qt 5.6 and come back if it solves my problem partially or totally..

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

          oh, can i see what you have found?
          I was/am not aware any requirements using QGuiApplication/QApplication
          Update: oK :)

          1 Reply Last reply
          0
          • S Offline
            S Offline
            stephane78
            wrote on last edited by
            #6

            Yes I have seen that with Qt5.6 and the environment variable QT_AUTO_SCREEN_SCALE_FACTOR or by using QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); it can perhaps solve my problem.
            So I will try this....

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

              well it will at least do something to your fonts :)

              1 Reply Last reply
              0
              • S Offline
                S Offline
                stephane78
                wrote on last edited by
                #8

                No,
                I have just tested with Qt5.6 and QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); and it doesn't solve the problem of the font...

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

                  but does it react to QT_AUTO_SCREEN_SCALE_FACTOR ?
                  did anything happen?

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    stephane78
                    wrote on last edited by
                    #10

                    No It doesn't react, if I do set QT_AUTO_SCREEN_SCALE_FACTOR=1 and I run the program, the font is too big with font scale display =125%

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      stephane78
                      wrote on last edited by stephane78
                      #11

                      I think we must tell the user to put 100% as font scale display....

                      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