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. QLayout Border
Forum Update on Monday, May 27th 2025

QLayout Border

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 10.4k 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.
  • R Offline
    R Offline
    Rosalia
    wrote on 14 Nov 2010, 15:08 last edited by
    #1

    Hi,

    When I use nested QLayouts, I have a problem because the added border messes up with the alignment of my widgets (see picture). Can I set this border to 0?

    http://www.inf.ufrgs.br/~rgschneider/problem.png

    Thank you,
    Rosália

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on 14 Nov 2010, 17:57 last edited by
      #2

      You can set it with designer, click on the toplevle widget (for the toplevel layout) or the layout itself and change the layout{top,left,bottom,right}Margin properties in the property dock menu.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rosalia
        wrote on 14 Nov 2010, 18:58 last edited by
        #3

        The margins are already 0. The problem is the very thin red border (see picture above), because for nested layouts it will not be that thin anymore.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on 14 Nov 2010, 22:11 last edited by
          #4

          You can adjust the laoyut's spacing too.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Rosalia
            wrote on 14 Nov 2010, 23:21 last edited by
            #5

            Please take a look at the picture, it is not the spacing and it is also not the margins. I want the layout not to have red borders. I assume it is not possible, I just wondered if anyone knows better.

            1 Reply Last reply
            0
            • B Offline
              B Offline
              brandont
              wrote on 15 Nov 2010, 01:49 last edited by
              #6

              Did you compile & run the program, or is that a screenshot from inside the designer? It look's like that screen shot is from inside the designer, like"this":http://labs.qt.nokia.com/wp-content/uploads/2007/07/eclipseintegrationuidesigner.png .

              When you compiler and run your software, the red borders and the blue springy things should be gone.

              1 Reply Last reply
              0
              • I Offline
                I Offline
                iunknwn
                wrote on 15 Nov 2010, 18:30 last edited by
                #7

                In Qt Designer,

                Go to Form menu >> Preview, or press Ctrl + R and it'd show you how it looks (this is just a quick preview of your ui file alone, not the final look & feel of your actual application)

                Vista x64 with Qt 4.8.2 and VS2010

                1 Reply Last reply
                0

                1/7

                14 Nov 2010, 15:08

                • 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