Hi,
I need to change Tab key behavior for a QTextEdit so that when pressed the focus is passed to the next widget of the parent dialog (in tab order). So I have reimplemented void QWidget::keyPressEvent( QKeyEvent * event ) of my custom QTextEdit this way:
Qt Code:
{ switch (event->key()) { case Qt::Key_Tab: emit focusnextchild(); break; default: } }To copy to clipboard, switch view to plain text mode
but now only the Tab key works (and the next widget is focused); pressing any other key (for inserting text in the textedit, for example) does nothing.
Where am I wrong?
Bookmarks