Class: QgsFieldValuesLineEdit

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

Bases: QgsFilterLineEdit

Constructor for QgsFieldValuesLineEdit

Parameters

parent (QWidget = None) – 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()
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()
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(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()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent()
sender()
senderSignalIndex()
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()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()