From 3e7c69afd0c69b2fffccf4e8cb6f292366f3217f Mon Sep 17 00:00:00 2001 From: Jerome Pasion Date: Tue, 14 Sep 2010 14:51:47 +0200 Subject: Added statement regarding validators and input masks on the same line edit. Reviewed-by: David Boddie Bug:QTBUG-11324 --- src/gui/widgets/qlineedit.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/widgets/qlineedit.cpp b/src/gui/widgets/qlineedit.cpp index 981e934..a60b30d 100644 --- a/src/gui/widgets/qlineedit.cpp +++ b/src/gui/widgets/qlineedit.cpp @@ -139,7 +139,10 @@ void QLineEdit::initStyleOption(QStyleOptionFrame *option) const The length of the text can be constrained to maxLength(). The text can be arbitrarily constrained using a validator() or an - inputMask(), or both. + inputMask(), or both. When switching between a validator and an input mask + on the same line edit, it is best to clear the validator or input mask to + prevent undefined behavior. + A related class is QTextEdit which allows multi-line, rich text editing. -- cgit v0.12