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

duplicated copyrightsChanged signal: one with QString one with QImage

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.5.0 FF
    • Location
    • None

    Description

      class Q_LOCATION_PRIVATE_EXPORT QDeclarativeGeoMap : public QQuickItem
      {
      ...
      Q_SIGNALS:
      ...
          void copyrightsChanged(const QImage &copyrightsImage);
          void copyrightsChanged(const QString &copyrightsHtml);
      ...
      

      A couple of places try to connect to both of them:

              connect(mapSource(), SIGNAL(copyrightsChanged(QImage)),
                      this, SLOT(copyrightsChanged(QImage)));
              connect(mapSource(), SIGNAL(copyrightsChanged(QString)),
                      this, SLOT(copyrightsChanged(QString)));
      

      This causes an assertion failure when running the mapviewer example:

      1   ??                                                                                                       0x7ffff43674dc 
      2   raise                                                                                                    0x7ffff4317998 
      3   abort                                                                                                    0x7ffff430153d 
      4   qAbort                                                                 qglobal.cpp                  2644 0x7ffff4927818 
      5   qt_message_fatal                                                       qlogging.cpp                 1916 0x7ffff493733c 
      6   QMessageLogger::fatal                                                  qlogging.cpp                 850  0x7ffff49337f2 
      7   qt_assert                                                              qassert.cpp                  68   0x7ffff49224ea 
      8   checkMethodMetaTypeConsistency                                         qmetaobject.cpp              1800 0x7ffff49ec073 
      9   (anonymous namespace)::QMetaMethodPrivate::parameterMetaTypeInterfaces qmetaobject.cpp              1834 0x7ffff49ec21d 
      10  QMetaObjectPrivate::methodMatch                                        qmetaobject.cpp              583  0x7ffff49e8920 
      11  QMetaObjectPrivate::indexOfMethodRelative<4>                           qmetaobject.cpp              641  0x7ffff49f34ce 
      12  QMetaObjectPrivate::indexOfSignalRelative                              qmetaobject.cpp              765  0x7ffff49e93ff 
      13  QObject::connect                                                       qobject.cpp                  2885 0x7ffff4a56786 
      14  QDeclarativeGeoMap::mappingManagerInitialized                          qdeclarativegeomap.cpp       704  0x7ffff7d9d8e8 
      15  QDeclarativeGeoMap::pluginReady                                        qdeclarativegeomap.cpp       424  0x7ffff7d9c044 
      16  QDeclarativeGeoMap::setPlugin                                          qdeclarativegeomap.cpp       536  0x7ffff7d9c6a1 
      17  QDeclarativeGeoMap::qt_static_metacall                                 moc_qdeclarativegeomap_p.cpp 1315 0x7ffff7c74e26 
      18  QDeclarativeGeoMap::qt_metacall                                        moc_qdeclarativegeomap_p.cpp 1370 0x7ffff7c751f9 
      19  QQmlVMEMetaObject::metaCall                                            qqmlvmemetaobject.cpp        1085 0x7ffff68a8bb0 
      20  QQmlPropertyData::doMetacall<(QMetaObject::Call)2>                     qqmlpropertydata_p.h         321  0x7ffff66777c9 
      ... <More>                                                                                                                  
      

      This is not ok since https://codereview.qt-project.org/c/qt/qtbase/+/422744 apparently.

      Attachments

        Issue Links

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

          Activity

            People

              vhilshei Volker Hilsheimer
              srutledg Shawn Rutledge
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes