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

[Regression] destroy() doesn't work on objects created dynamically in QML/JS.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.0.0
    • 5.0.0
    • None
    • Linux, Qt5 public repo, SHA of QtDeclarative : 83eb5ba0082cee15a5ca01000084c07fdb19af76

      If you run the attached test case clicking on the blue rectangle should delete the red one. It doesn't and display a warning : <Unknown File>:1: Error: Invalid attempt to destroy() an indestructible object. According the documentation this warning is valid only for C++ created objects. There are none here and it was working fine in Qt Quick 1.1.

        1. Destroy.qml
          0.6 kB
          Alexis Menard
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            aakenned Aaron Kennedy
            darktears Alexis Menard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes