PInch Zoom
-
I am using Qt 5.1.1 and i am trying to compile first for desktop. this #include <QGraphicsView> is not working on Qt 5 ? Is there any example for Qt5 pinch and android ?
-
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.
-
I agree with you. Is there any example for Qt 5.1.1 ? for this purpose ?
-
Sorry, I don't know, I did not have any need for it yet.
-
Did you use pinch zoom for android in Qt 5.1.1 ? Anyone else tried to do it ?
-
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.
-
I know.. but i can't change the whole application to QML now.. it will duplicate the work hours.
-
Finally i make the pinchzoom example work on android. Simulator and real device. The problem is that i want to transfer the functionality of pinchzoom to my app which is working with PinchZoom example.
-
It is good to share what the problem was. Other people may have the same problem.
-
the problem is QT += widgets in the .pro file. Clean - qmake - rebuild and then run. Now i am trying to copy the functionality to my project. I will keep all people here get informed.