Using timers for animations in QtQuick is not a proper approach. You have a bunch of types inheriting Animation to do animations.
You don't send signals from somwhere to somewhere else. You just emit a signal and if anyone is interested in it, he can connect to that signal.So how can I send a signal from one file to another?
The declarative approach would be to come up with a statement that states when the animation is running, e.g.:All signal examples I found were only within one page. Or how else could I start and stop my text animation?
javascript Code:
NumberAnimation { // ... running: clock.cycles > 0 // ... }To copy to clipboard, switch view to plain text mode
By the way, from what I see you can get rid of the whole ticker of yours and do everything you do there in a declarative manner instead of imperative statements. The hardest part in learning QML is to make yourself stop thinking imperatively and start thinking declaratively.
Bookmarks