Results 1 to 5 of 5

Thread: Layout Problem

  1. #1
    Join Date
    Feb 2008
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Layout Problem

    When I use a vboxlayout , even if I use all margins and spacings = 0, there is a space between the bottom layout margin and the bottom widget. I don't want this space! How can I Fix?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Layout Problem

    Perhaps you have nested layouts and you didn't disable the margin for each layout or something. Could you attach the .ui file?
    J-P Nurmi

  3. #3
    Join Date
    Feb 2008
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Layout Problem

    Thank you for reply, I can't post the ui file .
    The vboxlayout is contained in a hboxlayout (the layout of the mainwindow), but the problem presents itself even before I set the hboxlayout. Moreover is visible that the EVIL BOTTOM MARGIN is between the red bottom bound of the vboxlayout and the bottom of the bottom widget.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Layout Problem

    We don't need the original .ui file. Just prepare small example which shows the problem.
    J-P Nurmi

  5. #5
    Join Date
    Feb 2008
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Layout Problem

    Problem solved.
    There was an invisible label!

Similar Threads

  1. QGLWidget problem
    By MarkoSan in forum Qt Programming
    Replies: 33
    Last Post: 8th December 2007, 15:50
  2. Qt layout memory issue
    By bunjee in forum Qt Programming
    Replies: 9
    Last Post: 25th August 2007, 17:11
  3. problem with Tool button n Layout
    By arjunasd in forum Qt Tools
    Replies: 11
    Last Post: 24th July 2007, 21:14
  4. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  5. Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 4
    Last Post: 19th April 2006, 11:08

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.