ZOOMIN AND ZOOMOUT IN QT
-
Hey, i made a graph in custom widget.....but it is not properly visible so i want to add zoomin and zoomout on this .But I ahve no idea how to add zoomin and zoomout in paintevent .please help me to come out from this proble...thanks in advance....
-
In QML, zoom functionality is usually achieved by using "scale" property of Item.
-
Hey i made it in qt creator and i know about scale but i want to do something else.....like i will choose some particular area of my graph and it should be zoomed..like in touch mobile........
-
Use the scale, do the maths, and it will show you only what you need :) There is no built-in mechanism for getting that, AFAIK.
-
bq. ...like i will choose some particular area of my graph and it should be zoomed
Have a look at "Qt5 Everywhere Demo":https://qt.gitorious.org/qt-labs/qt5-everywhere-demo/source/9a868f96ee63c21ceda890d8dfc9d33f093d1b6d. May be you will get some idea.