Hi
How Can insert number to qtextEdit ??
Hi
How Can insert number to qtextEdit ??
No need to yell.
What's wrong with QTextEdit::setPlainText()?
And to put a number in it, use e.g. :
Qt Code:
To copy to clipboard, switch view to plain text mode
Regards,
Marc
Now I want using QlineEdit
as,
Qt Code:
To copy to clipboard, switch view to plain text mode
But i see this error,
error: 'void QLineEdit::textChanged(const QString&)' is protected
I want a way to:
Get values from the user.
Put the values in the box.
Do you use the QLineEdit or qtextEdit![]()
For, Get values from the user:
Qt Code:
int x = ui->textEdit->toPlainText().toInt(&ok,10); //OrTo copy to clipboard, switch view to plain text mode
and for, Put the values in the box:
Qt Code:
To copy to clipboard, switch view to plain text mode
Bookmarks