Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-16630

Dynamically created items destroyed while dragging.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.7.1
    • None
    • Windows XP, Windows 7, Symbian
    • 5207e48e469e279fe20304914e92edd73c5c641f

      See the attached QML file for reproducing the problem.
      See the attached 3 snapshots for illustration of the problem.

      Steps to reproduce:

      1. Start dragging one of the white rectangles (snapshot1.png).
      2. Keep on dragging (can take 10 seconds or more) until the rectangle suddenly disappears (snapshot2.png).
      3. Try to start dragging another rectangle. It disappears on mouse press (snapshot3.png).

      Notice that the "Children count" text visualizes the children count. It drops to 1 and then 0.

      I have found two ways to make the problem disappear:

      1. Comment out the onPositionChanged signal handler.
      OR
      2. In myComponent.createObject(null), replace null with itemContainer.

      This strange behavior causes serious problems in my application(s).

      Might be related to: QTBUG-15085?

        1. dragdemo.qml
          1 kB
        2. snapshot1.png
          snapshot1.png
          2 kB
        3. snapshot2.png
          snapshot2.png
          2 kB
        4. snapshot3.png
          snapshot3.png
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            martjone Martin Jones (closed Nokia identity) (Inactive)
            marko Marko Heikkilä
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes