Results 1 to 3 of 3

Thread: QVBoxLayout and QHBoxLayout problem

  1. #1
    Join Date
    Jul 2008
    Posts
    26
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question QVBoxLayout and QHBoxLayout problem

    Hi i a have QVBoxLayout with many QHBoxLayouts
    and sometimes i have a QVBoxLayout with 3 QHBoxLayouts and then i want
    the same QVBoxLayout to have 2 QHBoxLayouts and want the previous 3 QHBoxLayout s to disappear

    The problem is they are not and the widgets inserted int the QHBoxLayouts get one uppon the other (overdraw them self) kindof....

    if u could give an ideea how to do this , i tried deleting the QvBoxLayout pointer but it is not working
    Thanks

  2. #2
    Join Date
    Sep 2008
    Posts
    14
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Post Re: QVBoxLayout and QHBoxLayout problem

    HI,

    You can create two QVBox Layouts and u can use as u need either with 3 QHBox or with 2 QHBox..

  3. #3
    Join Date
    Jan 2006
    Location
    Knivsta, Sweden
    Posts
    153
    Thanks
    30
    Thanked 13 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: QVBoxLayout and QHBoxLayout problem

    Maybe it is easier to use QGridLayout, which also can handle widgets covering several rows/columns?

Similar Threads

  1. QHBoxlayout Size problem
    By Spitz in forum Qt Programming
    Replies: 2
    Last Post: 4th December 2008, 21:09
  2. Help with alignment
    By IsleWitch in forum Newbie
    Replies: 1
    Last Post: 20th October 2007, 18:20
  3. Problem Compiling - "`QtValidLicenseForCoreModule"?
    By Jimmy2775 in forum Qt Programming
    Replies: 3
    Last Post: 6th August 2007, 05:09
  4. Replies: 2
    Last Post: 19th May 2007, 18:25

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.