Class: QgsFieldValuesLineEdit

class qgis.gui.QgsFieldValuesLineEdit(parent: QWidget = None)

Bases: QgsFilterLineEdit

Constructor for QgsFieldValuesLineEdit

Parameters

parent – parent widget

A line edit with an autocompleter which takes unique values from a vector layer’s fields. The autocompleter is populated from the vector layer in the background to ensure responsive interaction with the widget.

Methods

actionEvent

attributeIndex

Returns the attribute index for the field containing values shown in the widget.

changeEvent

childEvent

closeEvent

connectNotify

contextMenuEvent

create

cursorRect

customEvent

destroy

disconnectNotify

dragEnterEvent

dragLeaveEvent

dragMoveEvent

dropEvent

enterEvent

focusInEvent

focusNextChild

focusNextPrevChild

focusOutEvent

focusPreviousChild

hideEvent

initPainter

initStyleOption

inputMethodEvent

isSignalConnected

keyPressEvent

keyReleaseEvent

layer

Returns the layer containing the field that values will be shown from.

leaveEvent

metric

mouseDoubleClickEvent

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

moveEvent

nativeEvent

paintEvent

receivers

resizeEvent

sender

senderSignalIndex

setAttributeIndex

Sets the attribute index for the field containing values to show in the widget.

setLayer

Sets the layer containing the field that values will be shown from.

sharedPainter

showEvent

tabletEvent

timerEvent

updateMicroFocus

wheelEvent

Signals

attributeIndexChanged

Emitted when the field associated with the widget changes.

layerChanged

Emitted when the layer associated with the widget changes.

actionEvent(self, QActionEvent)
attributeIndex(self)int

Returns the attribute index for the field containing values shown in the widget.

See also

layer()

Return type

int

attributeIndexChanged

Emitted when the field associated with the widget changes.

Parameters

index (int) – new attribute index for field [signal]

changeEvent(self, QEvent)
childEvent(self, QChildEvent)
closeEvent(self, QCloseEvent)
connectNotify(self, QMetaMethod)
contextMenuEvent(self, QContextMenuEvent)
create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)
cursorRect(self)QRect
customEvent(self, QEvent)
destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)
disconnectNotify(self, QMetaMethod)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
enterEvent(self, QEvent)
focusInEvent(self, e: QFocusEvent)
focusNextChild(self)bool
focusNextPrevChild(self, bool)bool
focusOutEvent(self, QFocusEvent)
focusPreviousChild(self)bool
hideEvent(self, QHideEvent)
initPainter(self, QPainter)
initStyleOption(self, QStyleOptionFrame)
inputMethodEvent(self, QInputMethodEvent)
isSignalConnected(self, QMetaMethod)bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
layer(self)QgsVectorLayer

Returns the layer containing the field that values will be shown from.

See also

setLayer()

See also

attributeIndex()

Return type

QgsVectorLayer

layerChanged

Emitted when the layer associated with the widget changes.

Parameters

layer (QgsVectorLayer) – vector layer [signal]

leaveEvent(self, QEvent)
metric(self, QPaintDevice.PaintDeviceMetric)int
mouseDoubleClickEvent(self, QMouseEvent)
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, e: QMouseEvent)
moveEvent(self, QMoveEvent)
nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr)Tuple[bool, int]
paintEvent(self, QPaintEvent)
receivers(self, PYQT_SIGNAL)int
resizeEvent(self, QResizeEvent)
sender(self)QObject
senderSignalIndex(self)int
setAttributeIndex(self, index: int)

Sets the attribute index for the field containing values to show in the widget.

Parameters

index (int) – index of attribute

See also

attributeIndex()

See also

setLayer()

setLayer(self, layer: QgsVectorLayer)

Sets the layer containing the field that values will be shown from.

Parameters

layer (QgsVectorLayer) – vector layer

See also

layer()

sharedPainter(self)QPainter
showEvent(self, QShowEvent)
tabletEvent(self, QTabletEvent)
timerEvent(self, QTimerEvent)
updateMicroFocus(self)
wheelEvent(self, QWheelEvent)