Results 1 to 6 of 6

Thread: Howto: Setup QScrollArea correct? - e.g. scrolling is not working...

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Location
    Vienna
    Posts
    91
    Thanks
    18
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Howto: Setup QScrollArea correct? - e.g. scrolling is not working...

    Hi,

    I've created a scrollArea in a widget and added another widget "pjob" to it,
    But it does not scroll automatically as it's described in the Class Reference.
    (The Image Viewer example also was not a really help) In the Designer i set: Vertical: ScrollbarAlwaysOn and Horizontal: ScrollBarAsNeeded

    Do i have to tell the scrollArea the size of the widget pjob, or does that happen automatically?
    Do i need scrollAreaWidgetContents? (It's not in the Qt 4.5 docu ??)

    any ideas?
    Thanx Astronomy


    Qt Code:
    1. m_ui->setupUi(this);
    2. Jobs *pjob = new Jobs();
    3.  
    4. m_ui->scrollArea->setWidget(pjob);
    5. m_ui->scrollArea->setWidgetResizable(true);
    To copy to clipboard, switch view to plain text mode 
    Attached Images Attached Images
    Last edited by Astronomy; 1st September 2010 at 21:20.

Similar Threads

  1. Replies: 5
    Last Post: 19th March 2010, 18:13
  2. transparent QScrollArea and blurry scrolling
    By titanandrews in forum Qt Programming
    Replies: 2
    Last Post: 17th January 2010, 00:35
  3. QScrollArea scrolling down not up
    By ntp in forum Qt Programming
    Replies: 5
    Last Post: 20th August 2008, 17:23
  4. Scrolling bar problem in QScrollArea
    By YuriyRusinov in forum Qt Programming
    Replies: 1
    Last Post: 4th February 2007, 21:22
  5. Replies: 2
    Last Post: 8th October 2006, 20:14

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.