Untitled
// 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); };