Subgroup: Multi
Class: QgsMultiEditToolButton¶
-
class
qgis.gui.
QgsMultiEditToolButton
(parent: QWidget = None)¶ Bases:
PyQt5.QtWidgets.QToolButton
Constructor for QgsMultiEditToolButton.
Parameters: parent – parent object 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.
New in version 2.16: Methods
Signals
resetFieldValueTriggered
Emitted when the “reset to original values” option is selected. setFieldValueTriggered
Emitted when the “set field value for all features” option is selected. Attributes
Changed
Default
MixedValues
-
Changed
= 2¶
-
Default
= 0¶
-
MixedValues
= 1¶
-
class
State
¶ Bases:
int
-
actionEvent
()¶
-
changeEvent
()¶
-
changesCommitted
(self)¶ Called when field values have been changed and field now contains all the same values.
See also
-
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
(self)¶ Resets the changed state for the field.
See also
See also
See also
-
resetFieldValueTriggered
¶ Emitted when the “reset to original values” option is selected. [signal]
-
resizeEvent
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setField
(self, field: QgsField)¶ Sets the field associated with this button. This is used to customise the widget menu and tooltips to match the field properties.
Parameters: field – associated field
-
setFieldValueTriggered
¶ Emitted when the “set field value for all features” option is selected. [signal]
-
setIsChanged
(self, changed: bool)¶ Sets whether the associated field has changed.
Parameters: changed – whether field has changed See also
isChanged()
See also
See also
-
setIsMixed
(self, mixed: bool)¶ Sets whether the associated field contains mixed values.
Parameters: mixed – whether field values are mixed See also
isMixed()
See also
See also
-
showEvent
()¶
-
state
(self) → QgsMultiEditToolButton.State¶ Returns the current displayed state of the button.
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateMicroFocus
()¶
-
wheelEvent
()¶
-