trigger_action
Triggers a QGIS QAction by object name or visible text and returns immediately via deferred execution, so modal dialogs opened by the action do not block UI inspection.
Instructions
Trigger a QAction by objectName (preferred) or its visible text (mnemonic '&' ignored).
The trigger is deferred; the reply is immediate, so a modal dialog it opens does not block. Submenus and disabled actions are refused. Check the result with list_windows / screenshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| index | No | ||
| window | No | QgisApp | |
| object_name | No |