Untitled
unknown
plain_text
4 years ago
309 B
34
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...