[Qt-interest] Unable to produce touchevents
Thiago Macieira
thiago at kde.org
Fri Aug 6 20:49:11 CEST 2010
On Friday 6. August 2010 13.41.52 situ117 at yahoo.com wrote:
> Hello,
>
> I'm trying to add support for touchpad in my software; I've following
> code:
>
> TouchTest::TouchTest(){
> setAttribute(Qt::WA_AcceptTouchEvents);
> }
>
> bool TouchTest::event(QEvent* event){
> qDebug()<<"TouchTest::event()";
> switch(event->type()){
> case QEvent::TouchBegin:
> case QEvent::TouchUpdate:
> case QEvent::TouchEnd:
> qDebug()<<"TouchEvent()";
> return true;
>
> }
>
> return QWidget::event(event);
> }
>
>
> But none of the three touch event is generated when I move fingers on
> my touchpad.
>
> I'm running Kubuntu 10.04 with Qt 4.6.2 on my Lenovo y500 3000
> notebook.
You need to patch both X.org and Qt in order to receive touch events in X11.
The multitouch branch for Qt is public (search gitorious.org/qt). The
equivalent patch to X.org isn't.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100806/3ef18234/attachment.bin
More information about the Qt-interest-old
mailing list