Untitled

 avatar
unknown
plain_text
3 years ago
309 B
18
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);
};