Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to insert selected listelements into parent rectangle
Qt 6.11 is out! See what's new in the release blog

How to insert selected listelements into parent rectangle

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 2.2k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          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

          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