Hello folks,
Is it possible to set a maximum length for QTextEdit....?
We have setMaxLength method for QLineEdit... I need a similar functionality for QTextEdit.
Regards
Hello folks,
Is it possible to set a maximum length for QTextEdit....?
We have setMaxLength method for QLineEdit... I need a similar functionality for QTextEdit.
Regards
Perhaps you could connect the QTextEdit::textChanged() signal to a slot that keeps count of how many characters there are and calls setEnabled(false) or something like that when the counter's value exceeds some threshold.
Bookmarks