Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
309 B
13
Indexable
Never
// 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);
};