Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [Solved] QML state onload

    QML and Qt Quick
    2
    4
    10456
    Loading More Posts
    • 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.
    • F
      Fadi last edited by

      Hi,

      How can i run a state action onload ?

      1 Reply Last reply Reply Quote 0
      • M
        mlong last edited by

        "Component.onCompleted:":http://doc.qt.nokia.com/4.7-snapshot/qml-component.html#onCompleted-signal is possibly what you're looking for.

        Software Engineer
        My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

        1 Reply Last reply Reply Quote 0
        • F
          Fadi last edited by

          Component.onCompleted: master.state= "rotationImage"

          working perfect
          Thanks a lot

          another question, how can i make the state run more than once?

          1 Reply Last reply Reply Quote 0
          • F
            Fadi last edited by

            i set rotation: 3600, with duration 10000, then the image still rotating for 10 seconds

            Thanks again @mlong

            1 Reply Last reply Reply Quote 0
            • First post
              Last post