Results 1 to 2 of 2

Thread: how to zoom image by resize the form without using QGraphicsView?

  1. #1
    Join Date
    Sep 2012
    Posts
    66
    Thanks
    21
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question how to zoom image by resize the form without using QGraphicsView?

    My app contain two images, one is the image(1) background that I can zoom by the form re-size and the other is the image(2) that is over the image background. So I don't know how to zoom the image(2) inside the form. How can I zoom it if it is over the background like this by not using QGraphicsView?

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: how to zoom image by resize the form without using QGraphicsView?

    Assuming you are using QPixmap/QImage, scaledToHeight(), scaledToWidth()
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. Replies: 3
    Last Post: 11th December 2011, 10:09
  2. Replies: 7
    Last Post: 1st December 2011, 16:24
  3. Replies: 1
    Last Post: 17th October 2011, 13:56
  4. QGraphicsView - zoom out using the right mouse button
    By dbrmik in forum Qt Programming
    Replies: 1
    Last Post: 14th April 2009, 22:17
  5. missing image with zoom (QGraphicsView)
    By avis_phoenix in forum Qt Programming
    Replies: 7
    Last Post: 18th March 2009, 13:09

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.