[Qt-interest] Unable to produce touchevents
Atlant Schmidt
aschmidt at dekaresearch.com
Fri Aug 6 20:45:39 CEST 2010
Siteshwar:
Just to clarify: You're not using the touchpad as
your main pointing device (as a touchscreen would
do) but instead using the touch pad as some sort
of auxiliary device, right?
Because if you were using it as your main pointing
device, I'd ask you if Qt's pointer-arrow cursor
operates properly, moving with your finger as your
finger moves on the touchpad...
Atlant
-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of situ117 at yahoo.com
Sent: Friday, August 06, 2010 12:42 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] Unable to produce touchevents
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.
Regards,
Siteshwar Vashisht
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.
Thank you.
Please consider the environment before printing this email.
More information about the Qt-interest-old
mailing list