OverviewFelgo 2 Support (Qt 5) › Dynamic list of components

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #9777


    Hi all,

    I have a question about how to create a (observable) list of components such that each component’s properties are automatically updated in the list when the component changes. For example, if the list stores “Squaby” objects and three Squaby’s change positions simultaneously, the x and y properties of the Squabys stored in the list should also change to their new x and y positions. I tried using ListModel but it seems to only store a static copy of an object.



    Felgo Team

    Hi NanoBreeze!

    I don’t know what your actual goal is, but maybe a simple javascript array might just do the trick for you? 😉

    For example, you could add a javascript array property that stores all the components you add.

    Item {
        property var myComponents: []
        function addComponent(component) {
        function getComponent(index) {
          return myComponents[index]


    Hope, this helps!




    • This reply was modified 4 years, 4 months ago by  GT.


    Thanks GT! Using a javascript array solved my problem perfectly.


    Felgo Team


    I’m happy I could help 😉

Viewing 4 posts - 1 through 4 (of 4 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support