How to set background inactive and grey while i put a password to a QInputDialog in QT? I have an qmainwindow app and i would like to do this. Thanks your help! :)
bool ok;
QString sPassword = QInputDialog::getText(this, "Enter Password", "Password: ", QLineEdit::Password, "",&ok);
if(ok && QString::compare(sPassword,"goodpassword",Qt::CaseInsensitive)==0)
QApplication::quit();