Untitled
Anonymous
plain_text
09/27/2021 7:30 PM
412 B
56
Indexable
// MainWindow Class
QLabel* userLabel = new QLabel(QString("Username :"), this);
QLineEdit* userInput = new QLineEdit(this);
QObject::connect(userInput, &QLineEdit::textChanged, this, &MainWindow::changeLabel);
// Implementation
void MainWindow::changeLabel(QString& text)
{
pUserLabel->setText(text);
};Editor is loading...