August 30, 2011

Landy Landy
Ant Farmer
57 posts

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:

  1.     GestureArea {
  2.         id: area
  3.         anchors.fill: parent
  4.         Tap {
  5.             onFinished: {
  6.                 console.log("this is a Tap!");
  7.             }
  8.         }
  9.     }

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:

  1. GestureArea {
  2.         id: area
  3.         anchors.fill: parent
  4.         onTap: {
  5.             console.log("this is a Tap!");
  6.         }
  7.     }

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

August 31, 2011

Landy Landy
Ant Farmer
57 posts

Anybody has an idea about this?

August 31, 2011

minimoog77 minimoog77
Lab Rat
128 posts

According to this http://doc.qt.nokia.com/4.7-snapshot/qml-gesturearea.html

gesture area development is discontinued.

August 31, 2011

Landy Landy
Ant Farmer
57 posts

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.

minimoog77 wrote:
According to this http://doc.qt.nokia.com/4.7-snapshot/qml-gesturearea.html

gesture area development is discontinued.

August 31, 2011

sriks sriks
Lab Rat
122 posts

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

 
  ‹‹ Flickable snap behaviour      Azimuthto() - got the formula but the angle is just not precise enough... ››

You must log in to post a reply. Not a member yet? Register here!