Subgroup: Field

Class: QgsFieldValuesLineEdit

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

Bases: qgis._gui.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.

New in version 3.0: 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.

Attributes

actionEvent()
attributeIndex(self) → int

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

See also

layer()

attributeIndexChanged

Emitted when the field associated with the widget changes.

Parameters:index – 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()

layerChanged

Emitted when the layer associated with the widget changes.

Parameters:layer – 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 – 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 – vector layer

See also

layer()

sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()