somename
30th May 2010, 19:28
bool Widget::eventFilter(QObject *target, QEvent *event)
{
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
if (keyEvent->modifiers() == Qt::ControlModifier) {
if (keyEvent->key() == Qt::Key_Tab) {
qDebug() << "Handling..";
return true;
}
return false;
}
}
then I see that this handler called two time:
ApplicationOutput:
Handling..
Handling..
{
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
if (keyEvent->modifiers() == Qt::ControlModifier) {
if (keyEvent->key() == Qt::Key_Tab) {
qDebug() << "Handling..";
return true;
}
return false;
}
}
then I see that this handler called two time:
ApplicationOutput:
Handling..
Handling..