PDA

View Full Version : Mouse press event Qt::LeftButton not working (touchpad)



Coder5546
30th November 2014, 17:56
Hi, tell me please is it bug or maybe I doing something wrong... ?



void mousePressEvent(QMouseEvent * event)
{
if(event->button() == Qt::LeftButton){
qDebug() << "left"; //not working
}else if (event->button() == Qt::RightButton){
qDebug() << "right"; //working
}
event->ignore();
}