lineedit — Extended QLineEdit. Supports prompt and Clear button¶
- This class:
- shows prompt text, which is visible only if line edit is empty
- shows Clear button, which is visible only when widget is not empty
Don’t use this class if you need classical line edit
-
enki.widgets.lineedit.
tr
(text)¶
-
class
enki.widgets.lineedit.
LineEdit
(parent)¶ Bases:
QLineEdit
Extended QLineEdit. Supports prompt and Clear button
-
clearButtonClicked
¶ clearButtonClicked()
Signal emitted, when Clear button has been clicked
-
promptText
()¶ Current prompt text
-
setPromptText
(prompt)¶ Set prompt text
-
paintEvent
(event)¶ QLineEdit.paintEvent implementation. Draws prompt
-
resizeEvent
(event)¶ QLineEdit.resizeEvent implementation Adjusts Clear button position
-
setClearButtonVisible
(visible)¶ Set Clear button visible
-