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. Repeater-like item for non-Items
Forum Updated to NodeBB v4.3 + New Features

Repeater-like item for non-Items

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 132 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    MajidKamali
    wrote on last edited by
    #1

    Hi.
    According to docs, one cannot repeat non-items in repeater.
    Is there a way to repeat a non-item at all?
    Actually I want to do something like this:

    property var ys: [ ... ] // list of y positions
    
    SequentialAnimation {
       RepeaterLikeItem { // <---
          model: ys.length
          NumberAnimation { target: mouseCursor; property: "y"; duration: 500; to: ys[model.index] } // model.index = [0, 1, ... ]
          PauseAnimation { duration: 100 }
          ScriptAction { script: mouseCursor.itemClicked(model.index) } // some user defined action
       }
    }
    

    I want to repeat { NumberAnimation, PauseAnimation and ScriptAction } block.
    Note on model.index usage.

    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