Currently, QT on MeeGo does not support multitouch, the pinching does not work 
in MTF application. But all single touch gestures can be captured by MTF 
application.

Thanks
-Weiliang
From: Michal Guminiak [mailto:michal.gumin...@teleca.com]
Sent: Monday, November 29, 2010 5:52 PM
To: Lin, Weiliang; meego-touch-dev@meego.com
Subject: Re: [MeeGo-touch-dev] QT Gesture Application


Does pinching work in the MTF applications? Try running widgetsgallery and see 
if you can pinch-resize the image in
simple widgets -> image widget. If yes, then most probably everything is ok 
with your touch events.

BR,
Michał.


-----Wiadomość oryginalna-----
Od: Lin, Weiliang [mailto:weiliang....@intel.com]
Wysłano: Pn 2010-11-29 10:31
Do: Michal Guminiak; meego-touch-dev@meego.com
Temat: RE: [MeeGo-touch-dev] QT Gesture Application

OK, I will verify if QTouchEvents can be received in event() function. But, a 
MTF touch function can work well. Does it mean QT can read touch events in my 
device?

Thanks
-Weiliang

From: Michal Guminiak [mailto:michal.gumin...@teleca.com]
Sent: Monday, November 29, 2010 5:26 PM
To: Lin, Weiliang; meego-touch-dev@meego.com
Subject: Re: [MeeGo-touch-dev] QT Gesture Application



Hello,

There can be multiple rootcauses I'm afraid.
First of all you could check if you receive QTouchEvents in your event() 
methods. If you don't get them, chances are that there is something wrong with 
the way Qt can read touch events in your device. In such case gestures won't 
work.

BR,
Michał.

-----Wiadomość oryginalna-----
Od: meego-touch-dev-boun...@meego.com w imieniu Lin, Weiliang
Wysłano: Pn 2010-11-29 04:58
Do: meego-touch-dev@meego.com
Temat: [MeeGo-touch-dev] QT Gesture Application

Hi all,
Instead of using MTF to develop gesture application, I followed the qt's 
tutorial on gesture programming. An example is the 
imagewidget(http://doc.qt.nokia.com/4.7/gestures-imagegestures.html)
I built the imagewidget application, and ran it on a Netbook with a touch 
screen(MTF application can work well). It can run successfully, but does not 
work for touch. I touch on the screen, but no effect.
I debugged the application and found that on the 'event' function of 
imagewidget as follows:
bool ImageWidget::event(QEvent *event)
 {
     if (event->type() == QEvent::Gesture)
         return gestureEvent(static_cast<QGestureEvent*>(event));
     return QWidget::event(event);
 }

 There is not any one execution branch of "event->type() == QEvent::Gesture".  
All QEvents are submitted to QWidget:event(). So what is the problem?

Thanks
-Weiliang
_______________________________________________
MeeGo-touch-dev mailing list
MeeGo-touch-dev@meego.com
http://lists.meego.com/listinfo/meego-touch-dev

Reply via email to