PDA

View Full Version : QInputDialog For Regular Experrsion



mandlakoteswar2011
24th September 2015, 11:23
How To Set QInputDialog for Regular Experssion....?

QString tempStr = QInputDialog::getText(this, "Main Menu","User Name", QLineEdit::Normal,"", &ok,Qt::CustomizeWindowHint | Qt::WindowTitleHint);

The Above Code It will take Both Characters and Integers ...

so I want To Take Only Characters ...So Plzz Give Me The Valueable Solution..

anda_skoa
24th September 2015, 13:03
Create your own input dialog.
See QDialog, QDialogButtonBox and QLineEdit.

Cheers,
_