[Qt-interest] Unable to produce touchevents

situ117 at yahoo.com situ117 at yahoo.com
Fri Aug 6 18:41:52 CEST 2010


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



More information about the Qt-interest-old mailing list