Hello,
Qt Code:
Repeater { model: 10 MyWindow { id: "mywindownumber" + index x: 20 + index * 30 y: 200 } }To copy to clipboard, switch view to plain text mode
It's obviously not working, but is there a way to achieve something similar?
Hello,
Qt Code:
Repeater { model: 10 MyWindow { id: "mywindownumber" + index x: 20 + index * 30 y: 200 } }To copy to clipboard, switch view to plain text mode
It's obviously not working, but is there a way to achieve something similar?
Maybe it's possible to use dynamically created components, which you can refer to by the Javascript variable but only within a function (http://qt-project.org/doc/qt-4.8/qde...icobjects.html). I use this method for creating and destroying dynamic components.
You can also create a component from a QML file (http://doc.qt.nokia.com/4.7-snapshot...documents.html) but I don't know if you can assign the id after it's created.
there s an itemAt(index) method
Bookmarks