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

qmllint: warn when shadowing signals and handlers

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • Some future release
    • 6.5
    • QML: Tooling
    • None

    Description

      See attached project: qmllint does not warn about shadowing signal, signal handlers, property changed signals and property changed handlers with properties, methods or signals.

      Shadowing those special names is bad because it makes writing tooling (especially: qmlls) more complicated, it has weird behaviors in the engine and some of this shadowing is also not supported by the engine.

      Uncomment each line separately to see the engine's error. You can also uncomment them all (but the engine aborts after the first error) to see that qmllint does not complain at all.

      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:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes