QtLottie gotoAndPlay(), start() methods doesnt work inside Connections
Unsolved
QML and Qt Quick
-
I have setup C++ QObject that controls the state of the program and this connection fails to fire QtLottie methods:
Connections{ target: appController onMicButtonStateChanged: () => { switch (appController.buttonState){ case AppController.LISTENING: lottieListening.gotoAndPlay(0); break; case AppController.SEARCHING: lottieLoading.gotoAndPlay(0); break; default: break; } } }
I can change state of all other qml elements but LottieAnimation.