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

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

XMLWordPrintable

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

      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).

        1. Archive.zip
          4 kB
          Sami Shalayel
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes