Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.9.3
-
None
-
x64 Debug
Description
Would you consider it a bug if QLineEdit comes back with more than one line of text from the user, i.e. containing newlines ? The user is able to do this via Ctrl+V pasting the text which contains newlines.
I believe that this should at minimum be documented somewhere on the QLineEdit reference page that users are by default allowed to paste newlines, so that developers will not be caught unawares.
I'd also suggest a convenient way of globally disabling that behavior – i.e. not just via setting a disallowed set of chars but a boolean flag or better yet a global #define. IMHO it should be off by default.
Note: I am marking this as a bug rather than a suggestion because it is both unexpected and undocumented. I tried searching the web on this or finding a reference to it in your documentation but couldn't find anything. So I assume it's not common knowledge.