Results 1 to 3 of 3

Thread: How to drop space in GridLayout ?

  1. #1
    Join Date
    Oct 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question How to drop space in GridLayout ?

    Hi all,
    I create dialog and i add QMdiArea when I apply Gridlayout, there is a space between the QMdiArea and the dialog's border. How should i proceed to drop this space
    Best Regards
    jack

  2. #2
    Join Date
    Jul 2006
    Location
    Catalunya - Spain
    Posts
    117
    Thanks
    16
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to drop space in GridLayout ?

    Have you tried setting some of this values to zero ?

    Qt Code:
    1. void QGridLayout::setSpacing ( int spacing )
    2. void QLayout::setContentsMargins ( int left, int top, int right, int bottom )
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Oct 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Thumbs up Re: How to drop space in GridLayout ?

    Thanx jpujolf
    I tried
    Qt Code:
    1. void QLayout::setContentsMargins ( int left, int top, int right, int bottom )
    To copy to clipboard, switch view to plain text mode 
    it worked

Similar Threads

  1. Drag and drop revisited
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 30th June 2006, 17:41
  2. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 9th March 2006, 00:11

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.