Results 1 to 3 of 3

Thread: QSplitter + multiple layouts? how?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Third rock from the sun
    Posts
    106
    Thanks
    17
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSplitter + multiple layouts? how?

    Create two QWidget as holders for the QGridLayout. Then use setLayout( ) to add the layout to the widget.

    Qt Code:
    1. QWidget *leftSide = new QWidget;
    2. QGridLayout *leftLayout = new QGridLayout;
    3. leftSide->setLayout( leftLayout );
    4. splitter->addWidget( leftSide );
    5.  
    6. // Add the remaining GUI elements to the layout and repeat for right side
    To copy to clipboard, switch view to plain text mode 

    Hope this helps.
    Every little child knows
    if you cant see dreams
    your eyes are blind

    Moxy Fruvous

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

    kja (8th September 2011)

Similar Threads

  1. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23

Tags for this Thread

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.