Results 1 to 4 of 4

Thread: QScrollArea inner widget problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Apr 2009
    Location
    Italy
    Posts
    70
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    23
    Thanked 15 Times in 11 Posts

    Default Re: QScrollArea inner widget problem

    The way you create your layout is odd, why are you passing the widget as parent? Usually, you want to create the layout with no parent and then call:
    Qt Code:
    1. widget->setLayout(layout);
    To copy to clipboard, switch view to plain text mode 
    See code here:
    http://doc.trolltech.com/4.6/qvboxlayout.html#details

    edit: oops, I just read you can pass the widget as parent. However, setLayout() is worth a try :-)
    Last edited by mattc; 19th January 2010 at 16:39.

Similar Threads

  1. QScrollArea: clearing the layout of the inner widget
    By mattc in forum Qt Programming
    Replies: 1
    Last Post: 3rd August 2009, 08:09
  2. resizing widget inside QScrollArea
    By mastupristi in forum Newbie
    Replies: 4
    Last Post: 16th July 2009, 19:29
  3. Simple QScrollArea problem
    By jmsbc in forum Qt Programming
    Replies: 4
    Last Post: 2nd December 2008, 18:45
  4. Replies: 3
    Last Post: 14th April 2006, 11:33
  5. [qt4] QScrollArea corner widget?
    By sertrem in forum Qt Programming
    Replies: 2
    Last Post: 12th January 2006, 21:42

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.