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. Designer Layout not scaling properly!!!!!
QtWS25 Last Chance

Designer Layout not scaling properly!!!!!

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 1.1k 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.
  • D Offline
    D Offline
    DouglinhasZN
    wrote on last edited by DouglinhasZN
    #1

    This is extremely frustrating.
    I am trying to space the checkboxes accordingly, but the layout grids make it extremely hard and annoying to even utilise it.
    I cant change the size of spacing or any other object in the form if its in layout.
    Can someone help? I've tried everything i could fine.
    qt designer layout size problem.PNG
    For example in this image, I cant make the size of that top layout box smaller in height.

    I tried to fix it by editing the layout bottom marging but the error persists when I open the file in my Linux laptop:
    scalability_issue_tool.png
    the error being that items in the program doesnt get displayed

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by JKSH
      #2

      Topic locked. Duplicate of https://forum.qt.io/topic/112653/qt-designer-this-file-contains-top-level-spacers

      EDIT: Unlocked again. They might be separate issues actually. Could you copy+paste the contents of you *.ui file here?

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      D 1 Reply Last reply
      1
      • JKSHJ JKSH

        Topic locked. Duplicate of https://forum.qt.io/topic/112653/qt-designer-this-file-contains-top-level-spacers

        EDIT: Unlocked again. They might be separate issues actually. Could you copy+paste the contents of you *.ui file here?

        D Offline
        D Offline
        DouglinhasZN
        wrote on last edited by
        #3

        @JKSH
        I tried posting it here, but it was too long:
        https://justpaste.it/29wfm
        let me know if you'd prefer if i posted in bits.

        mrjjM JKSHJ 2 Replies Last reply
        0
        • D DouglinhasZN

          @JKSH
          I tried posting it here, but it was too long:
          https://justpaste.it/29wfm
          let me know if you'd prefer if i posted in bits.

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

          @DouglinhasZN
          Actually that is the generated code.
          It would be more fun to see the CVE_Design.ui file as we can then open it op and look. (with Designer)

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

            Hi
            To alter how Widget share the space, you use the stretch factor

            alt text

            that allows each widget to take a bigger or less share instead of dividing it equally.

            D 1 Reply Last reply
            3
            • D DouglinhasZN

              @JKSH
              I tried posting it here, but it was too long:
              https://justpaste.it/29wfm
              let me know if you'd prefer if i posted in bits.

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              @DouglinhasZN said in Designer Layout not scaling properly!!!!!:

              https://justpaste.it/29wfm
              let me know if you'd prefer if i posted in bits.

              If you need more help after trying @mrjj's solution, please post the XML code from the *.ui file.

              No need to post in bits; if it's too long to fit in the forum then an external host is fine.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              2
              • mrjjM mrjj

                Hi
                To alter how Widget share the space, you use the stretch factor

                alt text

                that allows each widget to take a bigger or less share instead of dividing it equally.

                D Offline
                D Offline
                DouglinhasZN
                wrote on last edited by
                #7

                @mrjj Hey thanks for that, really helpeful. Unfortunately I dont have that in some of my layouts. What I did is, I used LayoutBottomMargin instead. That seems to have worked. However, I still get the text cut off when I open it on my linux laptop. Could it be a compability issue with Linux? Or perhaps a screen one seeing how its a laptop screen whereas my pc has a 35" widescreen?
                Here's the UI File. I appreciate the help guys
                https://mega.nz/#!HBl10CQB!dldwM8TFigIsH-Ei3GRkOtU9HZ526huYJi7JU-Zdxn0
                I tried uploading here but it said I dont have enough privileges for that @JKSH

                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