Hey guys,
I'm adding a QLineEdit using this code:
Everything shows up correctly, I can type in any information, everything is alright but... Nokia's keyboard has a standard behavior were if you tap a button and you keep it pressed, instead of a letter, the number associated with that button will show up.Code:QLineEdit *lineEdit = new QLineEdit(parent); QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); sizePolicy.setHorizontalStretch(0); sizePolicy.setVerticalStretch(0); sizePolicy.setHeightForWidth(lineEdit->sizePolicy().hasHeightForWidth()); lineEdit->setSizePolicy(sizePolicy); lineEdit->setMinimumSize(QSize(311, 73)); lineEdit->setObjectName(QString().sprintf("FormLineEdit%p", lineEdit)); lineEdit->setTextMargins(10, 0, 20, 0); lineEdit->setStyleSheet(QString("QLineEdit#%1 { color: rgb(255,255,255); font: 75 19px \"AvantGardeMdITCTT\"; background-image: url(:/images/res/formulario_base.png); }").arg(lineEdit->objectName())); formLayout->addWidget(lineEdit);
But after the first number shows up, it stops working. I tap the button keep it pressed and it starts vibrating like crazy, like not allowing the number to show up. I need to change the keyboard to numeric keypad and only then I can write numbers.
On *every* QLineEdit I've created (in two projects already) I've found the same behavior. It always happens after the first time you try it out and the number shows up.
Has anybody experienced this kind of erratic behavior?
Best,
Matias





