Signal is emitted and when the Return or Enter key is pressed the When the cursor is moved the cursorPositionChanged() When the text changes other than by calling setText() the textEdited() signal is emitted When the text changes the textChanged() signal is emitted ![]() (which may be different, see EchoMode) is retrieved withĬan be selected with setSelection() or selectAll(), and the selection canīe cut(), copy()ied and paste()d. You can change the text with setText() or insert(). Switching between a validator and an input mask on the same lineĮdit, it is best to clear the validator or input mask to prevent The text can beĪrbitrarily constrained using a validator() or an inputMask(), or both. The length of the text can be constrained to maxLength(). ![]() ![]() Undo and redo, cut and paste, and drag and drop.īy changing the echoMode() of a line edit, itĬan also be used as a "write-only" field, for inputs such as Plain text with a useful collection of editing functions, including The QLineEdit widget is a one-line text editor.Ī line edit allows the user to enter and edit a single line of
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |