PDA

View Full Version : Please help me handling UP and DOWN key in my class?



blue_sky
24th October 2013, 11:30
void DgEzChannelView::keyPressEvent(QKeyEvent* e)
{

if( e->key() == Qt::Key_Up ) { do stuff; }
else if( e->key() Qt::Key_Down ) { do stuff; }
}
======================
this is getting event for each every key pressed except up,down,right,left arrow key.May be QT core application is filtering the events before sending to my class. plz help how to get the events of these 4 keys from key board.

spirit
24th October 2013, 12:17
Which class does DgEzChannelView inherit?