[CLOSED] How To Access QML Singleton?
-
wrote on 9 Mar 2014, 15:57 last edited by
If I have a QML type in Singleton.qml with
@
progma singleton
. . .
Rectangle{
. . .
property var myProperty
. . .
signal mySignal()
. . .
function myFunction{...}
. . .
}
@can I do the following from multiple other QML files
- Set/update myProperty
- Respond to signal via onMySignal
- Invoke myFunction
Any examples would be especially useful.
Thanks.
Steve
-
wrote on 15 Mar 2014, 15:17 last edited by
@
Set/update myProperty
Respond to signal via onMySignal
Invoke myFunction
@I was recenty told that all three can be done with QML singletons.
Steve
1/2