line_edit¶
Module Contents¶
Line edit button |
|
Line edit |
|
Completer menu |
|
Search line edit |
|
Edit layer |
|
Text edit |
|
Plain text edit |
|
Text browser |
|
Password line edit |
- class LineEditButton(icon: str | PyQt5.QtGui.QIcon | qfluentwidgets.common.icon.FluentIconBase, parent=None)¶
Bases:
PyQt5.QtWidgets.QToolButtonLine edit button
- isPressed = False¶
- setAction(action: PyQt5.QtWidgets.QAction)¶
- action()¶
- setIcon(icon: str | qfluentwidgets.common.icon.FluentIconBase | PyQt5.QtGui.QIcon)¶
- mousePressEvent(e)¶
- mouseReleaseEvent(e)¶
- paintEvent(e)¶
- class LineEdit(parent=None)¶
Bases:
PyQt5.QtWidgets.QLineEditLine edit
- lightFocusedBorderColor¶
- darkFocusedBorderColor¶
- leftButtons: List[LineEditButton] = []¶
- rightButtons: List[LineEditButton] = []¶
- hBoxLayout¶
- clearButton¶
- isError()¶
- setError(isError: bool)¶
set the error status
- setCustomFocusedBorderColor(light, dark)¶
set the border color in focused status
Parameters¶
- light, dark: str | QColor | Qt.GlobalColor
border color in light/dark theme mode
- focusedBorderColor()¶
- setClearButtonEnabled(enable: bool)¶
- isClearButtonEnabled() bool¶
- setCompleter(completer: PyQt5.QtWidgets.QCompleter)¶
- completer()¶
- addAction(action: PyQt5.QtWidgets.QAction, position=QLineEdit.ActionPosition.TrailingPosition)¶
- addActions(actions, position=QLineEdit.ActionPosition.TrailingPosition)¶
- focusOutEvent(e)¶
- focusInEvent(e)¶
- contextMenuEvent(e)¶
- paintEvent(e)¶
- class CompleterMenu(lineEdit: LineEdit)¶
Bases:
qfluentwidgets.components.widgets.menu.RoundMenuCompleter menu
- activated¶
- indexActivated¶
- items = []¶
- indexes = []¶
- lineEdit¶
- setCompletion(model: PyQt5.QtCore.QAbstractItemModel, column=0)¶
set the completion model
- setItems(items: List[str])¶
set completion items
- eventFilter(obj, e: PyQt5.QtCore.QEvent)¶
- popup()¶
show menu
- class SearchLineEdit(parent=None)¶
Bases:
LineEditSearch line edit
- searchSignal¶
- clearSignal¶
- searchButton¶
- search()¶
emit search signal
- setClearButtonEnabled(enable: bool)¶
- class EditLayer(parent)¶
Bases:
PyQt5.QtWidgets.QWidgetEdit layer
- eventFilter(obj, e)¶
- paintEvent(e)¶
- class TextEdit(parent=None)¶
Bases:
PyQt5.QtWidgets.QTextEditText edit
- layer¶
- scrollDelegate¶
- contextMenuEvent(e)¶
- class PlainTextEdit(parent=None)¶
Bases:
PyQt5.QtWidgets.QPlainTextEditPlain text edit
- layer¶
- scrollDelegate¶
- contextMenuEvent(e)¶
- class TextBrowser(parent=None)¶
Bases:
PyQt5.QtWidgets.QTextBrowserText browser
- layer¶
- scrollDelegate¶
- contextMenuEvent(e)¶
- class PasswordLineEdit(parent=None)¶
Bases:
LineEditPassword line edit
- viewButton¶
- setPasswordVisible(isVisible: bool)¶
set the visibility of password
- isPasswordVisible()¶
- setClearButtonEnabled(enable: bool)¶
- setViewPasswordButtonVisible(isVisible: bool)¶
set the visibility of view password button
- eventFilter(obj, e)¶
- inputMethodQuery(query: PyQt5.QtCore.Qt.InputMethodQuery)¶
- passwordVisible¶