×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    54

    Question QML State onload

    Hi there

    I'm having a problem getting a transition to execute in QML once the page has been loaded.

    Its very simple, just a bit of text that comes from the right and to the left when the app is launched.

    I am able to do this by a mouseEvent trigger but not something like an "onload()".

    Does anyone know of a way in which I can change the state of a component on load?

    Code:
                    states : State {
                        name: "enter"
                        //when: mouse.pressed == true // Works fine
                        when: window.onload() // Doesn't seem to work
                        PropertyChanges { target: allText; x: 100 }
                    }

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: QML State onload

    QML is not officially released, please forward your questions about QML to a developers mailing list:
    http://lists.trolltech.com/mailman/listinfo/qt-qml

  3. #3
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    54

    Re: QML State onload

    Ok will do, thx!

Similar Threads

  1. Drawing in QML
    By JeffC55 in forum [Archived] Qt Quick
    Replies: 8
    Last Post: 2011-04-27, 18:22
  2. Replies: 0
    Last Post: 2010-07-09, 10:02
  3. Qml to C++
    By cristids in forum Qt
    Replies: 1
    Last Post: 2010-06-14, 15:58
  4. XML onLoad with background http server problem
    By simonjuric in forum [Archived] Flash Lite on Nokia Devices
    Replies: 5
    Last Post: 2009-06-08, 16:47
  5. json script tag hack does not work from window.onload
    By hp3 in forum Browsing and Mark-ups
    Replies: 2
    Last Post: 2008-09-24, 15:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×