First of all, the event is sent to a wrong widget (it should be sent to the line edit, not to the window). Just notice that sending an event to the receiver inside an event filter causes an infinite loop. Secondly, you've got a memory leak there (the event is never deleted). Thirdly, there is QWidget::focusNextChild().
Qt Code:
if ( keyEvent->key() == Qt::Key_Period ) { qDebug () << "Event: Qt::Key_Period - Insert Qt::Key_Tab event..."; focusNextChild(); return true; }To copy to clipboard, switch view to plain text mode
Bookmarks