Class LimitedPlainTextEdit#
ClassList > LimitedPlainTextEdit
Inherits the following classes: QPlainTextEdit
Public Functions#
| Type | Name |
|---|---|
| LimitedPlainTextEdit (int maxChar, QLabel * label=nullptr) Constructs a LimitedPlainTextEdit with an optional character limit. |
Public Functions Documentation#
function LimitedPlainTextEdit#
Constructs a LimitedPlainTextEdit with an optional character limit.
If maxChar is non-zero, the edit will limit the number of characters to that value. The optional label can be used to display the remaining character count.
Parameters:
maxCharMaximum number of characters allowed; 0 means unlimited.labelOptional QLabel that will display the remaining characters; may be nullptr.