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

QML compile error about duplicate signals can be improved

    XMLWordPrintable

Details

    Description

      Error message from duplicate signals (attempt to override, in my specific case) is confusing: it implies that there is some "valid" way to override signals. But as far as I can tell from the code, there isn't.

      Duplicate signal name: invalid override of property change signal or superclass signal

      qtdeclarative/src/qml/qml/qqmlpropertycachecreator_p.h
      QString signalName = stringAt(s->nameIndex);
      if (seenSignals.contains(signalName))
          return qQmlCompileError(s->location, QQmlPropertyCacheCreatorBase::tr("Duplicate signal name: invalid override of property change signal or superclass signal"));
      seenSignals.insert(signalName);
      

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ratijas ivan tkachenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes