In my quest for making a custom PV plugin, I’m currently trying to press a (qt) button in my C++ plugin via the PV python console.
I guess, I am looking for a functionality, similar to Q_PROPERTY, which would add a python method to a C++ plugin, enabling one to write plugin.Function() in a console.
Though it sounds complicated, all I need is to emit a signal, which would trigger another C++ function and do what I need.
What is the correct way to achieve this? Thank you.
Then you should use a Property to trigger the call in the proxy controlling this class.
<Property command="Preprocess"
name="preprocess"
panel_widget="command_button"
panel_visibility="always">
<Documentation> A convenient way to trigger a call server side </Documentation>
</Property>