Results 1 to 5 of 5

Thread: Grid Layout -- and buttons spacing

  1. #1
    Join Date
    May 2013
    Posts
    11
    Thanks
    1
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Grid Layout -- and buttons spacing

    I'm considering about the vertical stretch in my gridLayout. As you can see in the image below, there is something like "top margin" set up, but its value is set to 0. I can't figure out, where does the spacing is coming from. I hope you've got some advice for me. Thanks for Your help.

    gridLayout.jpg
    Last edited by Noob; 3rd May 2013 at 18:11.

  2. The following user says thank you to Noob for this useful post:


  3. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Grid Layout -- and buttons spacing

    Not clear from the picture, can you hightlight "the spacing" in the picture?
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  4. The following user says thank you to Santosh Reddy for this useful post:


  5. #3
    Join Date
    May 2013
    Posts
    11
    Thanks
    1
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Grid Layout -- and buttons spacing

    Well, so if You take a look at the 3x2 grid you can see, that all buttons are moved down like about 1cm. They should be in the center of the cells, but they are moved down. It looks like there could be set up a top margin, but it isnt;

    gridLayout.jpg

  6. The following user says thank you to Noob for this useful post:


  7. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Grid Layout -- and buttons spacing

    Post the .UI file as an attachment.

  8. The following user says thank you to ChrisW67 for this useful post:


  9. #5
    Join Date
    May 2013
    Posts
    11
    Thanks
    1
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Grid Layout -- and buttons spacing

    Okey i handled it allready somehow, don't khnow where the point was, but from 3 trial it went forward normall.

  10. The following user says thank you to Noob for this useful post:


Similar Threads

  1. Control spacing of a QFrame layout using a Stylesheet
    By gmat4321 in forum Qt Programming
    Replies: 1
    Last Post: 21st October 2012, 19:18
  2. Spacing in a dock that contains 7 buttons [resolved]
    By castors33 in forum Qt Programming
    Replies: 3
    Last Post: 14th June 2011, 22:05
  3. Replies: 1
    Last Post: 10th June 2010, 15:21
  4. Replies: 3
    Last Post: 27th November 2008, 23:57
  5. Problem in layout spacing
    By mails.hemant in forum Qt Tools
    Replies: 15
    Last Post: 24th November 2008, 11:48

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.