Results 1 to 4 of 4

Thread: I am successfully able to scroll image in QScrollArea

  1. #1
    Join Date
    Nov 2008
    Posts
    52
    Qt products
    Qt4
    Platforms
    Windows

    Default I am successfully able to scroll image in QScrollArea

    I am successfully able to scroll image in QScrollArea using scrollbar.Can the image be rotated
    using another scrollbar.

  2. #2
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I am successfully able to scroll image in QScrollArea

    I don't think you can do it with a scoll bar.
    But why not rotate it with a QSlider connected to a rotate method?

  3. #3
    Join Date
    Nov 2008
    Posts
    52
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I am successfully able to scroll image in QScrollArea

    Can it be rotated in QScrollArea itself?

  4. #4
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I am successfully able to scroll image in QScrollArea

    So far I have not written an application that displays an image. So I don't know how to handle images.
    But if I search in Qt Assistant for a rotate() method it is offered in five different classes (e.g. QGraphicsItem or QPainter).
    If none of them is useful you probably have to implement are rotate method yourself. Or rotating is possible with this method: http://doc.trolltech.com/4.4/qimage.html#transformed.

Similar Threads

  1. QScrollArea: How to avoid automatic scroll actions?
    By PhilippB in forum Qt Programming
    Replies: 4
    Last Post: 31st October 2012, 20:04
  2. Force a Scroll in a QScrollArea
    By nmuntz in forum Qt Programming
    Replies: 2
    Last Post: 25th January 2009, 14:49
  3. Auto scroll down in QScrollArea
    By EricF in forum Qt Programming
    Replies: 2
    Last Post: 29th December 2008, 13:51
  4. Replies: 3
    Last Post: 16th December 2008, 15:38
  5. Big image, how to scroll to see it ?
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 18th January 2007, 14:27

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.