How can i get the input from the users??
i have used this code
void Dialog::gettext()
{
ui->dislabel->setText(text);
}
void Dialog::gettext()
{
QString text = QInputDialog::getText(this, tr("Enter the username"),
tr("User name:"), QLineEdit::Normal);
ui->dislabel->setText(text);
}
To copy to clipboard, switch view to plain text mode
but this code pops up a dialog which i dont need.
What i want is, when i add the text in the lineedit, it should be reflected in the label, or
when i add the text in the lineedit, a variable names text has to store it.
Bookmarks