Can't change phone's (Nokia E51) text input mode to "numeric".
Input mode always remains "predictive" when QInputDialog is opened.
Below is a sample code clip. (I have also tried id->setInputMethodHints(Qt::ImhPreferNumbers) )
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); bool ok = false; QInputDialog *id = new QInputDialog(); id->setInputMethodHints(Qt::ImhDigitsOnly); QString t = id->getText( this, tr("PreferNumbers"), tr("Input"), QLineEdit::Normal, "1", &ok); }