Results 1 to 2 of 2

Thread: several questions about QScrollArea

  1. #1
    Join Date
    Sep 2008
    Location
    New York
    Posts
    90
    Thanks
    13
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default several questions about QScrollArea

    1. I use QLabel and QScrollArea to show an image, however, when I change image size in QLabel (very large image), QScrollArea only show part of the image, any idea?

    2. I want to raise a button on top of QScrollArea (Zoom in-out button), but it does not work. Any ideas?

    3. It seems when I add QLabel into QScrollArea, I can not use QLabel independently. Is that right?

    Thank you for your reply.
    Last edited by Sheng; 4th June 2009 at 19:43.

  2. #2
    Join Date
    Sep 2008
    Location
    New York
    Posts
    90
    Thanks
    13
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: several questions about QScrollArea

    Quote Originally Posted by Sheng View Post
    1. I use QLabel and QScrollArea to show an image, however, when I change image size in QLabel (very large image), QScrollArea only show part of the image, any idea?

    2. I want to raise a button on top of QScrollArea (Zoom in-out button), but it does not work. Any ideas?

    3. It seems when I add QLabel into QScrollArea, I can not use QLabel independently. Is that right?

    Thank you for your reply.
    1 has been solved after adding setWidgetResizable( true ). Any idea of 2?
    Last edited by Sheng; 4th June 2009 at 19:43.

Similar Threads

  1. Dynamic updates of a QWidget in a QScrollArea
    By plamkata in forum Qt Programming
    Replies: 2
    Last Post: 20th July 2008, 23:45
  2. QScrollArea
    By sabeesh in forum Qt Programming
    Replies: 7
    Last Post: 2nd November 2007, 10:33
  3. QScrollArea and resizing
    By rarefluid in forum Qt Programming
    Replies: 8
    Last Post: 22nd July 2007, 14:18
  4. Memory management questions (im new to Qt)
    By scarvenger in forum Qt Programming
    Replies: 2
    Last Post: 6th May 2007, 07:41
  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.