PInch Zoom
-
Does anyone knows how to implement Pinch Zoom in Qt? this link
http://qt-project.org/doc/qt-4.8/touch-pinchzoom-main-cpp.html can't help me because i can't find classes like viewport() etc. Has anyone experience about that ?
Thanks. -
What are you interested in? QGraphicsView or QtQuick?
In QtQuick, you just need to use PinchArea element. No need to implement anything special.
-
The include is wrong, it should be:
@
#include <QGraphicsView>
@ -
Add #include <QGraphicsScene> too, then ;) Or the whole <QtGui>, to make things simpler and slower.
-
Please, before blaming others make sure you are not doing something wrong. Maybe you are using Qt 5, and not Qt 4 (this example is for Qt4, which does not support Android at all).
-
You may be missing the include of widgets in your .pro file. it is required in Qt5 if you are using widgets. That is why your header include is not working. Add this to your .pro file:
@
QT += widgets
@Transition from Qt 4 to Qt 5 is easy in general, but it might be hard for newcomers. I recommend only using examples for the version you are using.
-
Sorry, I don't know, I did not have any need for it yet.
-
No, last time I've tried was with Qt 4.8 and Necessitas Android port. Worked flawlessly (but in QML, not QWidgets), and I suspect the same is true for Qt 5. I have not seen any bugs reported on that.