Class: QgsMultiEditToolButton

class qgis.gui.QgsMultiEditToolButton

Bases: PyQt5.QtWidgets.QToolButton

A tool button widget which is displayed next to editor widgets in attribute forms, and allows for controlling how the widget behaves and interacts with the form while in multi edit mode.

QgsMultiEditToolButton(parent: QWidget = None) Constructor for QgsMultiEditToolButton.

Parameters:

parent

parent object

Methods

actionEvent

changeEvent

changesCommitted

Called when field values have been changed and field now contains all the same values.

checkStateSet

childEvent

closeEvent

connectNotify

contextMenuEvent

create

customEvent

destroy

disconnectNotify

dragEnterEvent

dragLeaveEvent

dragMoveEvent

dropEvent

enterEvent

event

focusInEvent

focusNextChild

focusNextPrevChild

focusOutEvent

focusPreviousChild

hideEvent

hitButton

initPainter

initStyleOption

inputMethodEvent

isSignalConnected

keyPressEvent

keyReleaseEvent

leaveEvent

metric

mouseDoubleClickEvent

mouseMoveEvent

mousePressEvent

mouseReleaseEvent

moveEvent

nativeEvent

nextCheckState

paintEvent

receivers

resetChanges

Resets the changed state for the field.

resizeEvent

sender

senderSignalIndex

setField

Sets the field associated with this button.

setIsChanged

Sets whether the associated field has changed.

setIsMixed

Sets whether the associated field contains mixed values.

sharedPainter

showEvent

state

Returns the current displayed state of the button.

tabletEvent

timerEvent

updateMicroFocus

wheelEvent

Signals

resetFieldValueTriggered

pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

setFieldValueTriggered

pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

Attributes

Changed

Default

MixedValues

Changed = 2
Default = 0
MixedValues = 1
class State

Bases: int

actionEvent(self, QActionEvent)
changeEvent(self, QEvent)
changesCommitted(self)

Called when field values have been changed and field now contains all the same values.

See also

resetChanges()

checkStateSet(self)
childEvent(self, QChildEvent)
closeEvent(self, QCloseEvent)
connectNotify(self, QMetaMethod)
contextMenuEvent(self, QContextMenuEvent)
create(self, window: PyQt5.sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)
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)
event(self, QEvent) bool
focusInEvent(self, QFocusEvent)
focusNextChild(self) bool
focusNextPrevChild(self, bool) bool
focusOutEvent(self, QFocusEvent)
focusPreviousChild(self) bool
hideEvent(self, QHideEvent)
hitButton(self, QPoint) bool
initPainter(self, QPainter)
initStyleOption(self, QStyleOptionToolButton)
inputMethodEvent(self, QInputMethodEvent)
isSignalConnected(self, QMetaMethod) bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
leaveEvent(self, QEvent)
metric(self, QPaintDevice.PaintDeviceMetric) int
mouseDoubleClickEvent(self, QMouseEvent)
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
moveEvent(self, QMoveEvent)
nativeEvent(self, Union[QByteArray, bytes, bytearray], PyQt5.sip.voidptr) Tuple[bool, int]
nextCheckState(self)
paintEvent(self, QPaintEvent)
receivers(self, PYQT_SIGNAL) int
resetChanges(self)

Resets the changed state for the field.

See also

setIsMixed()

See also

setIsChanged()

resetFieldValueTriggered

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Parameters:
  • name (str = ...) –

  • revision (int = ...) –

  • arguments (Sequence = ...) –

Return type:

PYQT_SIGNAL

resizeEvent(self, QResizeEvent)
sender(self) QObject
senderSignalIndex(self) int
setField(self, field: QgsField)

Sets the field associated with this button. This is used to customize the widget menu and tooltips to match the field properties.

Parameters:

field (QgsField) – associated field

setFieldValueTriggered

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Parameters:
  • name (str = ...) –

  • revision (int = ...) –

  • arguments (Sequence = ...) –

Return type:

PYQT_SIGNAL

setIsChanged(self, changed: bool)

Sets whether the associated field has changed.

Parameters:

changed (bool) – whether field has changed

See also

setIsMixed()

See also

resetChanges()

setIsMixed(self, mixed: bool)

Sets whether the associated field contains mixed values.

Parameters:

mixed (bool) – whether field values are mixed

See also

setIsChanged()

See also

resetChanges()

sharedPainter(self) QPainter
showEvent(self, QShowEvent)
state(self) QgsMultiEditToolButton.State

Returns the current displayed state of the button.

Return type:

QgsMultiEditToolButton.State

tabletEvent(self, QTabletEvent)
timerEvent(self, QTimerEvent)
updateMicroFocus(self)
wheelEvent(self, QWheelEvent)