Results 1 to 2 of 2

Thread: How to Add Layout to Scroll Area Widget in Qt Creator

  1. #1
    Join Date
    Nov 2014
    Posts
    54
    Thanks
    5
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default How to Add Layout to Scroll Area Widget in Qt Creator

    Hi i am trying to add multiple groupboxes for scrollArea through Qt creator ver - 2.4.1 but i was unable to see the scrollbars, the number of increase in groupboxes are adjusting on the layout but scroll bars are not appearing how can i add a vertical layout to scroll area in order to see the scroll bars. I have added the Vertical Layout manually even though i am failed to see the scroll bars.

    Here are the screen shots of my creation hierarchy and application output.

    http://img4.imagetitan.com/img.php?i...3017-43-29.png

    http://img4.imagetitan.com/img.php?i...3017-43-41.png

    http://img4.imagetitan.com/img.php?i...3017-44-23.png

    Please guide me.

    Thanks in advance,
    Rohith.G
    Last edited by gunturrohith; 1st July 2017 at 06:06.

  2. #2
    Join Date
    Jun 2017
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to Add Layout to Scroll Area Widget in Qt Creator

    I have had a similar problem. The solution was to call QScrollArea::setWidgetResizable(true);
    Then the scrollbar should appear.

Similar Threads

  1. Scroll area and its child widget
    By bibhukalyana in forum Qt Programming
    Replies: 0
    Last Post: 31st July 2014, 07:12
  2. Add widget to Scroll area widget contents
    By mythili in forum Qt Programming
    Replies: 4
    Last Post: 16th February 2014, 19:57
  3. Scroll Area inside Dock Widget
    By saransiva_ps in forum Qt Programming
    Replies: 2
    Last Post: 6th August 2013, 06:35
  4. Replies: 8
    Last Post: 2nd February 2012, 19:52
  5. Scroll bars in scroll area not comming in scroll area
    By aurora in forum Qt Programming
    Replies: 3
    Last Post: 4th January 2012, 06:50

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.