Class: QgsHighlightableLineEdit

A QgsFilterLineEdit subclass with the ability to “highlight” the edges of the widget.

Added in version 3.14.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsHighlightableLineEdit

Base classes

QgsFilterLineEdit

QLineEdit subclass with built in support for clearing the widget’s value and handling custom null value representations.

QLineEdit

QWidget

QObject

QPaintDevice

Methods

isHighlighted

Returns True if the line edit is currently highlighted.

setHighlighted

Sets whether the line edit is currently highlighted.

class qgis.gui.QgsHighlightableLineEdit[source]

Bases: QgsFilterLineEdit

__init__(parent: QWidget | None = None)

Constructor for QgsHighlightableLineEdit, with the specified parent widget.

Parameters:

parent (Optional[QWidget] = None)

isHighlighted(self) bool[source]

Returns True if the line edit is currently highlighted.

See also

setHighlighted()

Return type:

bool

setHighlighted(self, highlighted: bool)[source]

Sets whether the line edit is currently highlighted.

See also

isHighlighted()

Parameters:

highlighted (bool)