September 23, 2010

2beers 2beers
Lab Rat
148 posts

QML and Gestures

 

hi I want to build an app using Gestures: http://doc.qt.nokia.com/4.7/qml-gesturearea.html [doc.qt.nokia.com] , but it seems that the functions are not included in qt 4.7 . are they gone be included in 4.7.x or should I download and use them externally?

[edit: fixed link / chetankjain]

8 replies

September 23, 2010

mbrasser mbrasser
Hobby Entomologist
401 posts

Hi,

They should be included in 4.7. Can you be more specific about what is going wrong? Looking at the docs, the import statement looks wrong to me — I think it should be “import Qt.labs.gestures 1.0” (rather than 0.1)

Regards,
Michael

September 23, 2010

2beers 2beers
Lab Rat
148 posts

hi mbrasser. thanks. yes that was the problem 1.0 instead of 0.1

but now I have a different problem: Qt Creator doesn’t recognize the signals such as onTap, onSwipe, etc..

I don’t receive any error but nothing happens. I also tried this example [doc.qt.nokia.com]

[edit: fixed link / chetankjain]

September 23, 2010

mbrasser mbrasser
Hobby Entomologist
401 posts

What platform are you using? As a first step, I’d suggest trying some of Qt’s non-QML touch/gesture examples, and see whether or not those work for you.

September 23, 2010

2beers 2beers
Lab Rat
148 posts
mbrasser wrote:
What platform are you using? As a first step, I'd suggest trying some of Qt's non-QML touch/gesture examples, and see whether or not those work for you.

I’m trying to run it in simulator. I can’t run the example on simulator using the mouse?

I have qt 4.7 and qt creator 2.01 . Like I said the creator doesn’t recognize onTap,onSwipe signals, it shows me with a red underline.

All others QML examples are working. at least the ones I tried. :)

September 24, 2010

mbrasser mbrasser
Hobby Entomologist
401 posts

Hi,

The red underline is due to an incomplete type specification in the file “qml-builtin-types.xml” used by Creator to provide meta information on the QML types.

Looking at this suggestion [bugreports.qt.nokia.com], I’d say gestures aren’t yet supported in the simulator.

Regards,
Michael

September 24, 2010

2beers 2beers
Lab Rat
148 posts

thanks mbrasser

August 15, 2011

truongpv truongpv
Lab Rat
1 posts

I also like. I tried the N8 but it only recognize ONTAP, onTapAndHold

November 15, 2011

nesaver nesaver
Lab Rat
17 posts

N950 only recognize Ontap, onTapAndHold

How the way i can get onPan event ?? Pls help me.

 
  ‹‹ QML ListView      delete QML file from creator ››

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