QgsLocatorResult::ResultAction struct

The ResultAction stores basic information for additional actions to be used in a locator widget for the result.

They could be used in a context menu for instance.

Constructors, destructors, conversion operators

ResultAction() defaulted
Constructor for ResultAction.
ResultAction(int id, QString text, QString iconPath = QString())
Constructor for ResultAction The id used to recognized the action when the result is triggered.

Function documentation

QgsLocatorResult::ResultAction::ResultAction(int id, QString text, QString iconPath = QString())

Constructor for ResultAction The id used to recognized the action when the result is triggered.

It should be 0 or greater as otherwise, the result will be triggered normally.