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. Make Studio3D component not visible after a slide has finished
Forum Updated to NodeBB v4.3 + New Features

Make Studio3D component not visible after a slide has finished

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 2 Posters 939 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.
  • CamiloC Offline
    CamiloC Offline
    Camilo
    wrote on last edited by
    #1

    I'm trying to integrate a simple animation in a QtQuick application. I've loaded the animation using the Studio3D QML type:

    import QtQuick 2.9
    import QtQuick.Window 2.2
    import QtStudio3D 1.0
    
    Window {
        id: window
        visible: true
        width: 640
        height: 480
        title: qsTr("Hello World")
    
        Studio3D {
            id: studio3D
            anchors.fill: parent
            visible: true
    
            Presentation {
                source: "qrc:/animations/Intro.uia"
            }
        }
    

    Now, I need to know when the slide in the animation has finished playing in order to set:

    studio3D.visible = false
    

    Does anybody know how could I achieve that? Any ideas are appreciated

    ODБOïO 1 Reply Last reply
    0
    • CamiloC Camilo

      I'm trying to integrate a simple animation in a QtQuick application. I've loaded the animation using the Studio3D QML type:

      import QtQuick 2.9
      import QtQuick.Window 2.2
      import QtStudio3D 1.0
      
      Window {
          id: window
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          Studio3D {
              id: studio3D
              anchors.fill: parent
              visible: true
      
              Presentation {
                  source: "qrc:/animations/Intro.uia"
              }
          }
      

      Now, I need to know when the slide in the animation has finished playing in order to set:

      studio3D.visible = false
      

      Does anybody know how could I achieve that? Any ideas are appreciated

      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      @Camilo Hello,
      Could you please tell me how you dit it ?

      CamiloC 1 Reply Last reply
      1
      • ODБOïO ODБOï

        @Camilo Hello,
        Could you please tell me how you dit it ?

        CamiloC Offline
        CamiloC Offline
        Camilo
        wrote on last edited by
        #3

        @LeLev I solved it with a little trick. Since I know the exact duration of the intro animation I added a timer that sets the animation not visible when it's triggered:

        Timer {
                interval: 4500; running: true; repeat: false
                onTriggered: studio3D.visible = false
            }
        

        It's not the prettiest solution but it gets the job done.

        ODБOïO 1 Reply Last reply
        1
        • CamiloC Camilo

          @LeLev I solved it with a little trick. Since I know the exact duration of the intro animation I added a timer that sets the animation not visible when it's triggered:

          Timer {
                  interval: 4500; running: true; repeat: false
                  onTriggered: studio3D.visible = false
              }
          

          It's not the prettiest solution but it gets the job done.

          ODБOïO Offline
          ODБOïO Offline
          ODБOï
          wrote on last edited by
          #4

          @Camilo :p That was exactly what I wanted to advise you !
          So there is not a 'real' signal emited when animation is over ?

          CamiloC 1 Reply Last reply
          1
          • ODБOïO ODБOï

            @Camilo :p That was exactly what I wanted to advise you !
            So there is not a 'real' signal emited when animation is over ?

            CamiloC Offline
            CamiloC Offline
            Camilo
            wrote on last edited by
            #5

            @LeLev Not that I am aware of, so far...

            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