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. Create timer in component.oncompletion

Create timer in component.oncompletion

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
componentoncompletiontimer
2 Posts 2 Posters 976 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.
  • Q Offline
    Q Offline
    QtGuy
    wrote on 6 Jan 2016, 15:18 last edited by
    #1

    Attempting to create a timer in Component.onCompleted using the following code but I keep getting an error about needing a ';'. Thanks for your help.

    Component.onCompleted: {
    		     Timer {
    		         interval: 1500; running: true; repeat: false;
    		         onTriggered: do_something;
    		     }
    }
    
    1 Reply Last reply
    0
    • C Offline
      C Offline
      Charby
      wrote on 6 Jan 2016, 18:25 last edited by
      #2

      @QtGuy said:

      Component.onCompleted: {

      Remove the ":"

      1 Reply Last reply
      0

      1/2

      6 Jan 2016, 15:18

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved