Nominate our 2022 Qt Champions!

CheckBox to QInputDialog..?

  • Hi,

    i am using QInputDialog to receive password and now i have to show the password when ever the user want,is it possible to show the password when ever user checks the CheckBox as of Wifi tethering password in our mobiles.

    QString text = QInputDialog::getText(this, tr("Enter Password"),tr("<b>Enter Password <br> Password should be 8 charecters minimum</b>"), QLineEdit::Password,"", &ok);

    If it is possible please post a sample code

    Thanks in advance,

  • Moderators

    no it's not.
    You would have to implement your custom QDialog subclass.
    Which shouldn't be much of an effort.