PDA

View Full Version : how to support pinch/unpinch zoom features in Qt application



h123
30th July 2009, 07:43
Hi,
I want to support pinch/unpinch zoom support in one of my application.
Can you please let me know whether Qt provides any support for this or
any plan to support this ? Currently, if Qt is not supporting then
what are the alternatives ?
Thank you.

yogeshgokul
30th July 2009, 07:48
Hi,
I want to support pinch/unpinch zoom support in one of my application.
Thank you.
What kind of zoom you are talking about ?
Image zoom ?

wagmare
30th July 2009, 09:06
like QTouchEvent in qt4.6 ..?
http://doc.trolltech.com/4.6-snapshot/qtouchevent.html

h123
30th July 2009, 12:29
Hi yogeshgokul,
> What kind of zoom you are talking about ? Image zoom ?
Yes image zoom.
I am using QGLWidget, and want to provide facility to zoom-in/zoom-out.
Please share ur ideas how it can be done.
Thank you.

yogeshgokul
31st July 2009, 08:04
For zooming image on a GL. You have 2 options.
1. You can use GL native functions.
2. Use QImage::scaled(), QPixmap::scaled().