I'm quite knew to Qt and would like to understand if there is a solution for my issue.
I would like to define in C++ a global function that should be called from the QML side. I found a solution on StackOverflow that would let me invoke the function like:
myObject.myFunction();
But I would prefer to avoid the object name like:
myFunction();
that is the same we do, for example, when we need to translate a string:
qsTr("my string");
Is it possible anyway?