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

qmlSignalParameters warning is unhelpful

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.11
    • 6.10
    • QML: Tooling

    Description

      If the type is unknown,  the warning is attached to the handler; but a user can't do anything at this point. It should at least point to the place where the signal is defined in addition – if at all. If the parameter is not used at all in the handler, it can be questioned whether there really ought to be a warning in the first place.

       

      Moreover, for QML defined signals, we should warn about invalid type annotations instead (and use didYouMean to handle potential typos).

      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
              fabiankosmale Fabian Kosmale
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes