Results 1 to 5 of 5

Thread: QScrollArea (for dummies) with qtcreator

  1. #1
    Join Date
    Sep 2010
    Posts
    45
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8

    Default QScrollArea (for dummies) with qtcreator

    Do you know how to enable a QScrollArea with qtcreator.

    I've done a lot of experiments but nothing happen, the two scroll bars never appears.

    I've set a minimum size of the contained widget
    I've used the layout.
    ...

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: QScrollArea (for dummies) with qtcreator

    Don't know what you have done. But works perfect:
    Attached Files Attached Files

  3. #3
    Join Date
    Sep 2010
    Posts
    45
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8

    Default Re: QScrollArea (for dummies) with qtcreator

    I've done this experiment (see Attachment)
    Where's the error?

    Can you explain in a few words how to obtain a working example.
    Attached Files Attached Files

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: QScrollArea (for dummies) with qtcreator

    You have to set the layout on the scroll area, not "inside" the area only containing the items. Choose the scroll area and then click on the layout. Also your main window has no layout!

  5. #5
    Join Date
    Sep 2010
    Posts
    45
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8

    Default Re: QScrollArea (for dummies) with qtcreator

    Quote Originally Posted by Lykurg View Post
    You have to set the layout on the scroll area, not "inside" the area only containing the items. Choose the scroll area and then click on the layout. Also your main window has no layout!
    Thanks now it works.

Similar Threads

  1. Replies: 1
    Last Post: 10th February 2010, 07:28
  2. Replies: 2
    Last Post: 10th March 2008, 20:16
  3. QScrollArea
    By sabeesh in forum Qt Programming
    Replies: 7
    Last Post: 2nd November 2007, 10:33
  4. Building plugins for dummies
    By Jeff_Birt in forum Qt Programming
    Replies: 3
    Last Post: 24th January 2007, 03:21
  5. QAbstractItemModel for dummies
    By morty in forum Qt Programming
    Replies: 1
    Last Post: 10th October 2006, 15: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
  •  
Qt is a trademark of The Qt Company.