×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    14

    how to use timer?

    Hi,
    I am having some problem with the timer. My problem is I want my "main.qml" will automatically load to next page "menu.qml" in 3 seconds.
    So how I need to apply the timer to make it works?

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: how to use timer?

    Hi,

    check the link hope will helpful to you to understand timer.

    are you getting triggered event of your timer?
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    25

    Re: how to use timer?

    Hi,

    To load the "menu.qml" file from "main.qml" you have to use 'Loader' element.

    This is how you can do...

    Code:
     Loader {
            id: qmlLoader
            x: 0; y: 0
            width: 360; height: 640
            clip: true;
        }
    
    regards,
    Sauvik
        Timer {
            running: true
            interval: 3000
            onTriggered: {
                qmlLoader.source = "menu.qml"
            }
        }
    In this when the timer is triggered after 3 seconds then we are setting the source property of the Loader element with the desired qml file (in this case "menu.qml"). And as soon as the source property is set the qml file will be loaded.

    You can put the above code in the "main.qml" file at the desired place.

  4. #4
    Registered User
    Join Date
    Mar 2011
    Posts
    14

    Re: how to use timer?

    Thanks you all

Similar Threads

  1. Replies: 6
    Last Post: 2009-11-04, 04:04
  2. How to use Timer in Symbian?
    By truonglekhanh_hcmuns in forum Symbian
    Replies: 14
    Last Post: 2008-11-06, 11:06
  3. How to use Timer?
    By gauravgandhi80 in forum Symbian
    Replies: 4
    Last Post: 2005-01-10, 11:25
  4. how to use accurate timer?
    By dreamplayer in forum Symbian
    Replies: 1
    Last Post: 2004-04-15, 09:44
  5. Can anyone tell me how to use Timer?
    By e160 in forum Mobile Java General
    Replies: 2
    Last Post: 2003-10-27, 12:36

Posting Permissions

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