Hi friends..
I've a question. I've a qml and i create some object dynamicaly in qml by javascript(createobject). How can i access to this object in qml? for example to allow to user drag it or bind some properties to it?
thanks.
Hi friends..
I've a question. I've a qml and i create some object dynamicaly in qml by javascript(createobject). How can i access to this object in qml? for example to allow to user drag it or bind some properties to it?
thanks.
you can create a custom property :
property QtObject dynamic_button
and the save the result of createobject to this property.
then use this property as you would with an item id.
Thnaks Le_B
How about if i create more dynamic_button and i want allow user to drag whichever he wants? Suppose i have an array in javascript which keeps all objects
then it shouldn't be an array or dynmic object but a model and a listview or gridview
something like
http://developer.qt.nokia.com/wiki/D...hin_a_GridView
Thanks again.
How can i implement drag and drop for a QtObject property which u mentioned?
the same way you would do it with static object.
in the property case every property is like the id of the object
Yeah that worksthanks very much ...
Bookmarks