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

qmlSignalParameters warning is unhelpful

XMLWordPrintable

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

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

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

            qtqmlteam Qt Qml Team User
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes