LogInPage::LogInPage(QWidget *parent)
: QDialog(parent)
, ui(new Ui::LogInPage)
{
ui->setupUi(this);
connect(ui->username, &QTextEdit::textChanged, this,
&LogInPage::clearTextEdit);
}
void LogInPage::clearTextEdit()
{
ui->username->clear();
}
I have tried this code, but with no success. Do you guys have any other suggestions? I have also tried this:
void on_username_clicked() in the private slots of the header with the same clear function, but it did not work.