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
Returns the attribute index for the field containing values shown in the widget.
Returns the layer containing the field that values will be shown from.
Sets the attribute index for the field containing values to show in the widget.
Sets the layer containing the field that values will be shown from.
Signals
Emitted when the field associated with the widget changes.
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
See also
- 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
See also
- Return type
-
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
See also
-
setLayer
(self, layer: QgsVectorLayer)¶ Sets the layer containing the field that values will be shown from.
- Parameters
layer (QgsVectorLayer) – vector layer
See also
See also
-
showEvent
(self, QShowEvent)¶
-
tabletEvent
(self, QTabletEvent)¶
-
timerEvent
(self, QTimerEvent)¶
-
updateMicroFocus
(self)¶
-
wheelEvent
(self, QWheelEvent)¶