[Qt-interest] Unable to produce touchevents
situ117 at yahoo.com
situ117 at yahoo.com
Fri Aug 6 21:56:33 CEST 2010
Hello,
Are there any exact instructions available online which can help me in
adding support for touch events in X11 for Qt.
Regards,
Siteshwar Vashisht
Thiago Macieira wrote:
> 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.
>
More information about the Qt-interest-old
mailing list