manager.cpp
void Manager::on_show_password_checkBox_clicked(bool checked)
{
    if(checked)
    {
        // If user clicks this checkbox the password is shown
        ui->password_lineEdit->setEchoMode(QLineEdit::Normal);
        ui->retype_password_lineEdit->setEchoMode(QLineEdit::Normal);
    }
    else {
        // If this checkbox is un-checked, please hide the password
        ui->password_lineEdit->setEchoMode(QLineEdit::Password);
        ui->retype_password_lineEdit->setEchoMode(QLineEdit::Password);
    }
}
/* ============================================================================================================ */
/*                                      SECTION I : Credentials                                                 */
/* ============================================================================================================ */
// Show or hide the password when user checks or unchecks this box
SECTION I : Credentials

Show or hide the password when user checks or unchecks this box
SECTION I : Credentials Show or hide the password when user checks or unchecks this box
void Manager::on_show_password_checkBox_clicked(bool checked)
{
    if(checked)
    {
        ui->password_lineEdit->setEchoMode(QLineEdit::Normal);
        ui->retype_password_lineEdit->setEchoMode(QLineEdit::Normal);
    }
    else {
        ui->password_lineEdit->setEchoMode(QLineEdit::Password);
        ui->retype_password_lineEdit->setEchoMode(QLineEdit::Password);
    }
}
void Manager :: on_show_password_checkBox_clicked ( bool checked ) { if ( checked ) { ui -> password_lineEdit -> setEchoMode ( QLineEdit :: Normal ) ; ui -> retype_password_lineEdit -> setEchoMode ( QLineEdit :: Normal ) ; } else { ui -> password_lineEdit -> setEchoMode ( QLineEdit :: Password ) ; ui -> retype_password_lineEdit -> setEchoMode ( QLineEdit :: Password ) ; } }
SECTION I : Credentials
SECTION I : Credentials
// If user clicks this checkbox the password is shown // If this checkbox is un-checked, please hide the password