How to use GestureArea on Symbian^3
Hi all,
I was confused by GestureArea in QML.
Several months ago, I used GestureArea on Meego. The code is like this:
- GestureArea {
- id: area
- anchors.fill: parent
- Tap {
- onFinished: {
- console.log("this is a Tap!");
- }
- }
- }
Now, I wanna use it on Symbian^3. But I found that the code can’t work on Symbian^3. So, I changed the code as following:
- GestureArea {
- id: area
- anchors.fill: parent
- onTap: {
- console.log("this is a Tap!");
- }
- }
This code work well. But, there is another problem that I can’t use signals such as “onPan”, “onPinch”.
I am really confused with GestureArea element. The document is too simple for this.
So, guys, can u give me some useful information or example?
4 replies
According to this http://doc.qt.nokia.com/4.7-snapshot/qml-gesturearea.html
gesture area development is discontinued.
Yes, I saw that.
two questions:
1. If gesture area development is discontinued, how can we implement gesture in QML? I have noticed that there is a new element named “PinchArea” in QtQuick 1.1. But how about other gestures? such as Pan, Swipe.
BTW, now, I am using QtQuick 1.0. How can I update to QtQuick 1.1? I find the only way to update is that download the whole QtSDK again.
2. although gesture area development is discontinued, we can still use it in QtQuick 1.0. So, the question is that, how can I use it right now? If possible, is there any document or example about this? As I mentioned in this thread, I was really confused with how to use gesture area.
According to this http://doc.qt.nokia.com/4.7-snapshot/qml-gesturearea.htmlgesture area development is discontinued.
Ample of examples at http://gitorious.org/+qt-developers/qt-labs/qml-gestures-examples
Some explanation at http://paazio.nanbudo.fi/tutorials/qt-quick/gestures-in-qml
You must log in to post a reply. Not a member yet? Register here!



