Results 1 to 3 of 3

Thread: How to manually specify spacing and positioning of items in GridLayout of QML?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to manually specify spacing and positioning of items in GridLayout of QML?

    If you want the grid layout to fill the whole parent, anchor it with "fill: parent" to its parent.

    The height of a row is determined by the maximum height of all items in that row.
    Similarily, the width of a column is determined by the maximum wdith of all items in that column.

    Cheers,
    _

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


  3. #2
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Re: How to manually specify spacing and positioning of items in GridLayout of QML?

    Quote Originally Posted by anda_skoa View Post
    The height of a row is determined by the maximum height of all items in that row.
    Similarily, the width of a column is determined by the maximum wdith of all items in that column.
    Thankful for the information.

Similar Threads

  1. Spacing around legend items
    By FilipeMaia in forum Qwt
    Replies: 5
    Last Post: 13th August 2015, 09:15
  2. Replies: 5
    Last Post: 24th December 2014, 11:11
  3. How to clear the GridLayout
    By rahulgogoi in forum Qt Programming
    Replies: 7
    Last Post: 13th May 2011, 06:22
  4. QMdiArea with Gridlayout
    By ericV in forum Qt Programming
    Replies: 0
    Last Post: 14th September 2009, 11:26
  5. does gridlayout really lay out?
    By illuzioner in forum Newbie
    Replies: 2
    Last Post: 26th February 2006, 00:57

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
  •  
Qt is a trademark of The Qt Company.