Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.6.3
-
None
-
None
-
Compiled with Qt 4.6.3 on S60 5th Edition SDK. Tested on Nokia N97 and Nokia N97 mini.
-
5cef786a651c675d3428060a19bfd9d9ecee6083
Description
In numeric password-protected QLineEdit fields, a crash can occur when the user presses the keyboard's physical "Sym" key on certain devices. Since the QLineEdit field is supposed to only contain numeric digits, pressing the "Sym" key should actually just do nothing.
An example program where this occurs is below:
#include <QtGui> #include <QApplication> int main(int argc, char* argv[]) { QApplication app(argc, argv); QWidget w; QLayout *l = new QVBoxLayout; w.setLayout(l); QLineEdit *le = new QLineEdit(); l->addWidget(le); le->setEchoMode(QLineEdit::Password); le->setInputMethodHints(Qt::ImhDigitsOnly); le->setMaxLength(7); w.show(); return app.exec(); }