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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        1. Destroy.qml
          0.6 kB
          Alexis Menard

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes