How to insert selected listelements into parent rectangle
-
Hi I am developing an app and I have created a simple GridView for about 10 images.
I want that when the user clicks on one of the images, that images is inserted into the Parent rectangle.
Is there any way to do it? I am stuck and I need immidiate help as I need to submit this app ASAP -
Please post some code of what you have and a better description of what you wish to achieve. "Parent rectangle" doesn't really tell us anything without see what you are talking about.
-
I have 2 qml pages
page 1- It is empty
page 2 - I have a grid view of about 10 images
objective - When i click on a image in the page2 that image should be inserted to page1 -
OK. When you say "inserted" do you mean:
"moved and reparented"? If so then look at the "ParentAnimation":http://qt-project.org/doc/qt-4.8/qml-parentanimation.html docs and example.
"copied or new item created dynamically"? If so then look at "Qt.createComponent()":http://qt-project.org/doc/qt-4.8/qdeclarativedynamicobjects.html