Line Edit Widget (lineedit
)
A LineEdit class with a button on left/right side.
- class orangecanvas.gui.lineedit.LineEdit(*args: Any, **kwargs: Any)[source]
Bases:
QLineEdit
A line edit widget with support for adding actions (buttons) to the left/right of the edited text
- LeftPosition = 1
Position flags
Left position flag
- RightPosition = 2
Position flags
Right position flag
- triggered(QAction)
Emitted when the action is triggered.
- leftTriggered
The left action was triggered.
- rightTriggered
The right action was triggered.
- setAction(action: QAction, position: int = 1) None [source]
Set action to be displayed at position. Existing action (if present) will be removed.
- Parameters:
action (
QAction
)position (int) – Position where to set the action (default:
LeftPosition
).