Class: QgsPropertyAssistantWidget¶
-
class
qgis.gui.
QgsPropertyAssistantWidget
(parent: QWidget = None, definition: QgsPropertyDefinition = QgsPropertyDefinition(), initialState: QgsProperty = QgsProperty(), layer: QgsVectorLayer = None)¶ Bases:
qgis._gui.QgsPanelWidget
Constructor for QgsPropertyAssistantWidget. Aside from a
parent
widget, the constructor accepts a corresponding propertydefinition
from which it customizes the displayed options (eg a color based property definition will show an assistant to allow creation of color based properties). TheinitialState
dictates the initial state to show in the widget. A correspondinglayer
can also be set to allow population of GUI widgets such as field selectors.Shows a user-friendly assistant guiding users through the creation of QgsProperty overrides.
New in version 3.0: Enums
Methods
Register an expression context generator class that will be used to retrieve an expression context for the button when required.
Updates a
property
in place to corresponding to the current settings shown in the widget.Signals
Attributes
-
actionEvent
()¶
-
changeEvent
()¶
-
childEvent
()¶
-
closeEvent
()¶
-
connectNotify
()¶
-
contextMenuEvent
()¶
-
create
()¶
-
customEvent
()¶
-
destroy
()¶
-
disconnectNotify
()¶
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
enterEvent
()¶
-
event
()¶
-
focusInEvent
()¶
-
focusNextChild
()¶
-
focusNextPrevChild
()¶
-
focusOutEvent
()¶
-
focusPreviousChild
()¶
-
hideEvent
()¶
-
initPainter
()¶
-
inputMethodEvent
()¶
-
isSignalConnected
()¶
-
keyPressEvent
()¶
-
keyReleaseEvent
()¶
-
leaveEvent
()¶
-
metric
()¶
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveEvent
()¶
-
nativeEvent
()¶
-
paintEvent
()¶
-
receivers
()¶
-
registerExpressionContextGenerator
(self, generator: QgsExpressionContextGenerator)¶ Register an expression context generator class that will be used to retrieve an expression context for the button when required.
-
resizeEvent
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setDockMode
(self, dockMode: bool)¶
-
showEvent
()¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateMicroFocus
()¶
-
updateProperty
(self, property: QgsProperty)¶ Updates a
property
in place to corresponding to the current settings shown in the widget.
-
wheelEvent
()¶
-