Access QML DSM state properties like 'id', 'onEntry', ... in C++
-
Hello,
I'm able to access properties like objectName, guard, signal for a QML DSM SignalTransition.
Is there a way to access the id as a String and maybe the QQmlScriptString for the onEntry and onExited properies for a QML DSM State?
DSM.State { id: showWidgetState // How can I access this as a string in C++? onEntered: showWidget() // How can I access this QQmlScriptString in C++? onExited: hideWidget() // How can I access this QQmlScriptString in C++? DSM.SignalTransition { signal: widgetSignal // I can access this as a string in C++ guard: something === true // I can access this as a string in C++ targetState: anotherState // I can access this state in C++ } }
Thank you,
Christopher
-
Hello,
I'm able to access properties like objectName, guard, signal for a QML DSM SignalTransition.
Is there a way to access the id as a String and maybe the QQmlScriptString for the onEntry and onExited properies for a QML DSM State?
DSM.State { id: showWidgetState // How can I access this as a string in C++? onEntered: showWidget() // How can I access this QQmlScriptString in C++? onExited: hideWidget() // How can I access this QQmlScriptString in C++? DSM.SignalTransition { signal: widgetSignal // I can access this as a string in C++ guard: something === true // I can access this as a string in C++ targetState: anotherState // I can access this state in C++ } }
Thank you,
Christopher
How can I access this as a string in C++?
AFAIK
id
is a special property attribute and hence it cannot be accessed from C++ or even from QML.Not sure of the rest :)