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

qmllint does not know about destroy() in Item and Rectangle, only in QtObject

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • 6.8
    • 6.8
    • QML: Tooling
    • None

    Description

      qmllint does warn about usages of destroy in Item and Rectangle (and also probably in other types deriving from QtObject):

      Warning: /Users/sami/tmp/untitled68/HelloWorld.qml:6:9: Unqualified access [unqualified]
              destroy(400)
              ^^^^^^^
      Info: Did you mean "destroyed"?
              destroyed(400)
              ^^^^^^^^^
      

      In the attached project, changing the root Type of HelloWorld to QtObject does remove the warning, but it reappears when using Item or Rectangle (or probably any other type inheriting from QtObject).

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              sami.shalayel Sami Shalayel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes