[Qt-interest] [Fwd: [Fwd: Problem with focusNextChild and QPlainTextEdit]]
Stefano Rosellini
s.rosellini at iv-srl.it
Fri Mar 27 10:57:41 CET 2009
Last call for help... Really no one?!?
I suspect that problem is about the tab key but I haven't found any simple solution.
--- Original message ---
No one?
--- Original message ---
If I use focusNextChild on a QLineEdit, it works, but on QPlainTextEdit
the focus remain on this widget. Does someone know why?
I used this overload for keyPressEvent (that works perfectly for QLineEdit).
void PEditorWidget::keyPressEvent(QKeyEvent *event) {
if (event->key()==Qt::Key_F8) {
focusNextChild();
return;
}
QPlainTextEdit::keyPressEvent(event);
}
Thanks.
Stefano Rosellini
Informatica Valdinievole
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
--
Stefano Rosellini
Informatica Valdinievole
More information about the Qt-interest-old
mailing list