Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtLottie gotoAndPlay(), start() methods doesnt work inside Connections
Qt 6.11 is out! See what's new in the release blog

QtLottie gotoAndPlay(), start() methods doesnt work inside Connections

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 168 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    oljik
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved