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. different scale of Designer and App - how to fix it?

different scale of Designer and App - how to fix it?

Scheduled Pinned Locked Moved Unsolved General and Desktop
scale differswindows 10newbie
7 Posts 3 Posters 2.2k Views
  • 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.
  • E Offline
    E Offline
    Erhy
    wrote on 15 Nov 2016, 17:50 last edited by
    #1

    Hello!
    Want to run a downloaded Qt-project on Windows 10.
    I'm able to modify the UI, but if I start the app
    all widgest are too small and narrowly,
    only the text-fonts are as defined in designer.

    Have you a fast advice for newbie**?**

    Thank you
    Erhy

    here the comparison:
    scale differs

    K 1 Reply Last reply 15 Nov 2016, 19:50
    0
    • E Erhy
      15 Nov 2016, 17:50

      Hello!
      Want to run a downloaded Qt-project on Windows 10.
      I'm able to modify the UI, but if I start the app
      all widgest are too small and narrowly,
      only the text-fonts are as defined in designer.

      Have you a fast advice for newbie**?**

      Thank you
      Erhy

      here the comparison:
      scale differs

      K Offline
      K Offline
      kshegunov
      Moderators
      wrote on 15 Nov 2016, 19:50 last edited by kshegunov
      #2

      Hi,
      Open the form with Qt creator and set a layout to that mess. Right click on the bottommost widget (the background) right click and select Set layout > Grid layout from the context menu.

      Kind regards.

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      2
      • E Offline
        E Offline
        Erhy
        wrote on 16 Nov 2016, 17:55 last edited by
        #3

        Thank you for your fast answer

        I could do as you suggested.

        Now there is a other quirk;

        a QToolBox with 4 QWidget's vertical aligned.

        In started up only the half is visible, movable with sliders.

        If I enlarge the toolbox all is enlarged.

        Where to do enlarge, that all is visible without sliders?

        Thank you
        Erhy

        K 1 Reply Last reply 16 Nov 2016, 19:00
        0
        • E Erhy
          16 Nov 2016, 17:55

          Thank you for your fast answer

          I could do as you suggested.

          Now there is a other quirk;

          a QToolBox with 4 QWidget's vertical aligned.

          In started up only the half is visible, movable with sliders.

          If I enlarge the toolbox all is enlarged.

          Where to do enlarge, that all is visible without sliders?

          Thank you
          Erhy

          K Offline
          K Offline
          kshegunov
          Moderators
          wrote on 16 Nov 2016, 19:00 last edited by
          #4

          You lost me. Could you attach another screenshot of what the other "quirk" is?

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply
          0
          • E Offline
            E Offline
            Erhy
            wrote on 17 Nov 2016, 11:21 last edited by
            #5

            here the running App
            There is a drawing area and a toolbox area, which I want to enlarge
            Erhy
            toolbox_too_small_for_fit_all_widgets

            1 Reply Last reply
            0
            • L Offline
              L Offline
              LuGRU
              wrote on 17 Nov 2016, 12:23 last edited by
              #6

              @Erhy

              1. QBoxLayout::setStretch(int index, int stretch) and use i.e. vertical layout. In this case it should be (most probably) QBoxLayout::setStretch( 0, 0) this will expand first widget based on it's content layouts setup.
              2. set fixed size for QToolBox
              3. use Splitters with will allow to manually resize areas. I think this is most appropriate solution for this case.
              E 1 Reply Last reply 21 Nov 2016, 19:05
              4
              • L LuGRU
                17 Nov 2016, 12:23

                @Erhy

                1. QBoxLayout::setStretch(int index, int stretch) and use i.e. vertical layout. In this case it should be (most probably) QBoxLayout::setStretch( 0, 0) this will expand first widget based on it's content layouts setup.
                2. set fixed size for QToolBox
                3. use Splitters with will allow to manually resize areas. I think this is most appropriate solution for this case.
                E Offline
                E Offline
                Erhy
                wrote on 21 Nov 2016, 19:05 last edited by
                #7

                @LuGRU Thank you,
                after some online tutorials I was able to fix it.
                Erhy

                1 Reply Last reply
                0

                1/7

                15 Nov 2016, 17:50

                • Login

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