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

qtlocation deprecated warning about qmlRegisterType

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.14.0 Beta3
    • Fix Version/s: 5.14.0
    • Component/s: Location
    • Commits:
      cd7edab940934fe8b100172e3e62e7eea5c354e5 (qt/qtlocation/5.14)

      Description

      /home/tjmaciei/src/qt/qt5/qtlocation/src/imports/location/location.cpp: In member function ‘virtual void QtLocationDeclarativeModule::registerTypes(const char*)’:
      /home/tjmaciei/src/qt/qt5/qtlocation/src/imports/location/location.cpp:134:60: warning: ‘int qmlRegisterType() [with T = QDeclarativeMapLineProperties]’ is deprecated: Use qmlRegisterAnonymousType instead [-Wdeprecated-declarations]
        134 |             qmlRegisterType<QDeclarativeMapLineProperties>();
            |                                                            ^
      In file included from /home/tjmaciei/obj/qt/qt5-release/qtdeclarative/include/QtQml/qqml.h:1,
                       from ../../../include/QtLocation/5.14.0/QtLocation/private/../../../../../../../../../src/qt/qt5/qtlocation/src/location/declarativemaps/qdeclarativegeoserviceprovider_p.h:57,
                       from ../../../include/QtLocation/5.14.0/QtLocation/private/qdeclarativegeoserviceprovider_p.h:1,
                       from /home/tjmaciei/src/qt/qt5/qtlocation/src/imports/location/location.cpp:37:
      /home/tjmaciei/obj/qt/qt5-release/qtdeclarative/include/QtQml/../../../../../../src/qt/qt5/qtdeclarative/src/qml/qml/qqml.h:138:74: note: declared here
        138 | QT_DEPRECATED_VERSION_X_5_14("Use qmlRegisterAnonymousType instead") int qmlRegisterType()
            |                                                                          ^~~~~~~~~~~~~~~
      /home/tjmaciei/src/qt/qt5/qtlocation/src/imports/location/location.cpp:134:60: warning: ‘int qmlRegisterType() [with T = QDeclarativeMapLineProperties]’ is deprecated: Use qmlRegisterAnonymousType instead [-Wdeprecated-declarations]
        134 |             qmlRegisterType<QDeclarativeMapLineProperties>();
            |                                                            ^
      In file included from /home/tjmaciei/obj/qt/qt5-release/qtdeclarative/include/QtQml/qqml.h:1,
                       from ../../../include/QtLocation/5.14.0/QtLocation/private/../../../../../../../../../src/qt/qt5/qtlocation/src/location/declarativemaps/qdeclarativegeoserviceprovider_p.h:57,
                       from ../../../include/QtLocation/5.14.0/QtLocation/private/qdeclarativegeoserviceprovider_p.h:1,
                       from /home/tjmaciei/src/qt/qt5/qtlocation/src/imports/location/location.cpp:37:
      /home/tjmaciei/obj/qt/qt5-release/qtdeclarative/include/QtQml/../../../../../../src/qt/qt5/qtdeclarative/src/qml/qml/qqml.h:138:74: note: declared here
        138 | QT_DEPRECATED_VERSION_X_5_14("Use qmlRegisterAnonymousType instead") int qmlRegisterType()
            |                                                                          ^~~~~~~~~~~~~~~
      /home/tjmaciei/src/qt/qt5/qtlocation/src/imports/location/location.cpp:180:44: warning: ‘int qmlRegisterType() [with T = QGeoMapObject]’ is deprecated: Use qmlRegisterAnonymousType instead [-Wdeprecated-declarations]
        180 |             qmlRegisterType<QGeoMapObject>();
            |                                            ^
      In file included from /home/tjmaciei/obj/qt/qt5-release/qtdeclarative/include/QtQml/qqml.h:1,
                       from ../../../include/QtLocation/5.14.0/QtLocation/private/../../../../../../../../../src/qt/qt5/qtlocation/src/location/declarativemaps/qdeclarativegeoserviceprovider_p.h:57,
                       from ../../../include/QtLocation/5.14.0/QtLocation/private/qdeclarativegeoserviceprovider_p.h:1,
                       from /home/tjmaciei/src/qt/qt5/qtlocation/src/imports/location/location.cpp:37:
      /home/tjmaciei/obj/qt/qt5-release/qtdeclarative/include/QtQml/../../../../../../src/qt/qt5/qtdeclarative/src/qml/qml/qqml.h:138:74: note: declared here
        138 | QT_DEPRECATED_VERSION_X_5_14("Use qmlRegisterAnonymousType instead") int qmlRegisterType()
            |                                                                          ^~~~~~~~~~~~~~~
      /home/tjmaciei/src/qt/qt5/qtlocation/src/imports/location/location.cpp:180:44: warning: ‘int qmlRegisterType() [with T = QGeoMapObject]’ is deprecated: Use qmlRegisterAnonymousType instead [-Wdeprecated-declarations]
        180 |             qmlRegisterType<QGeoMapObject>();
            |                                            ^
      In file included from /home/tjmaciei/obj/qt/qt5-release/qtdeclarative/include/QtQml/qqml.h:1,
                       from ../../../include/QtLocation/5.14.0/QtLocation/private/../../../../../../../../../src/qt/qt5/qtlocation/src/location/declarativemaps/qdeclarativegeoserviceprovider_p.h:57,
                       from ../../../include/QtLocation/5.14.0/QtLocation/private/qdeclarativegeoserviceprovider_p.h:1,
                       from /home/tjmaciei/src/qt/qt5/qtlocation/src/imports/location/location.cpp:37:
      /home/tjmaciei/obj/qt/qt5-release/qtdeclarative/include/QtQml/../../../../../../src/qt/qt5/qtdeclarative/src/qml/qml/qqml.h:138:74: note: declared here
        138 | QT_DEPRECATED_VERSION_X_5_14("Use qmlRegisterAnonymousType instead") int qmlRegisterType()
            |                                                                          ^~~~~~~~~~~~~~~
      

      Deprecated in 1cef434ae29d21bd46adb26d84ff37eec596985c

        Attachments

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

          Activity

            People

            • Assignee:
              ulherman Ulf Hermann
              Reporter:
              thiago Thiago Macieira
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes