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 fix scaling issue in Qt desktop application.
Forum Updated to NodeBB v4.3 + New Features

How to fix scaling issue in Qt desktop application.

Scheduled Pinned Locked Moved Unsolved General and Desktop
scalingresolutionalignment
6 Posts 4 Posters 2.5k Views 3 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.
  • M Offline
    M Offline
    Maikkannan
    wrote on 5 Jan 2020, 06:19 last edited by
    #1

    I have developed a desktop application using Qt creator.
    I am working in Windows 10. Qt creator 4.9.0. Qt library 5.12.2.

    With default resolution and scaling (100%) ,widget alignments are good. If I change scale to 125, 150..% widgets alignments getting collapsed. Font size are getting increased. How to fix this issue.
    Thanks.

    1 Reply Last reply
    1
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 5 Jan 2020, 08:21 last edited by
      #2

      Hi,

      Are you using layouts to manage your widget positions ?

      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
      2
      • M Offline
        M Offline
        Maikkannan
        wrote on 6 Jan 2020, 06:46 last edited by
        #3

        Hi SGaist,
        Are you mean the vertical/horizontal/grid/form layout?
        Yes. I'm using the grid layout to place widgets in some positions.

        For some widgets, I'm not using any layouts for its arrangements. Example,
        qt_1.JPG

        For some widgets, I'm using layouts foe its arrangements. Example,
        qt_2.JPG

        Widget's text size are getting increased when I change the window 10's Setting >> Display >> scale and layout >> 125%

        Collapsed outputs are like this,
        qt_3.JPG

        Thanks.

        A 1 Reply Last reply 6 Jan 2020, 14:21
        0
        • M Maikkannan
          6 Jan 2020, 06:46

          Hi SGaist,
          Are you mean the vertical/horizontal/grid/form layout?
          Yes. I'm using the grid layout to place widgets in some positions.

          For some widgets, I'm not using any layouts for its arrangements. Example,
          qt_1.JPG

          For some widgets, I'm using layouts foe its arrangements. Example,
          qt_2.JPG

          Widget's text size are getting increased when I change the window 10's Setting >> Display >> scale and layout >> 125%

          Collapsed outputs are like this,
          qt_3.JPG

          Thanks.

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 6 Jan 2020, 14:21 last edited by
          #4

          @Maikkannan said in How to fix scaling issue in Qt desktop application.:

          For some widgets, I'm not using any layouts for its arrangements.

          You should use layouts for all your widgets.

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          2
          • M Offline
            M Offline
            Maikkannan
            wrote on 10 Jan 2020, 04:54 last edited by
            #5

            Hi aha_1980,
            I placed all my widgets in separate layout (vertical layout ). After I changed the scaling percentage, the same issue occurred. Widget's size remained same but font size of widgets increased. Should I need to do any additional setting with layouts?
            Thanks.

            1 Reply Last reply
            1
            • Y Offline
              Y Offline
              yijia
              wrote on 10 Jan 2020, 09:11 last edited by
              #6

              @Maikkannan said in How to fix scaling issue in Qt desktop application.:

              increased

              Do you run it on a 2K screen?

              1 Reply Last reply
              0

              1/6

              5 Jan 2020, 06:19

              • Login

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