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. [Solved] QML state onload
QtWS25 Last Chance

[Solved] QML state onload

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 11.3k 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.
  • F Offline
    F Offline
    Fadi
    wrote on last edited by
    #1

    Hi,

    How can i run a state action onload ?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      "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
      0
      • F Offline
        F Offline
        Fadi
        wrote on last edited by
        #3

        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
        0
        • F Offline
          F Offline
          Fadi
          wrote on last edited by
          #4

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

          Thanks again @mlong

          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