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

error: cannot initialize a parameter of type 'QQmlTypeLoader *' with an rvalue of type 'QQmlEnginePrivate *'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P0: Blocker
    • 6.11.0 FF
    • 6.11.0 FF
    • State Machine: SCXML
    • None
    • Linux/X11
    • 2fe67adea (dev)

    Description

      /Users/qt/work/qt/qtscxml/tests/auto/qml/qqmlstatemachinemetatype/tst_qqmlstatemachinemetatype.cpp
      /Users/qt/work/qt/qtscxml/tests/auto/qml/qqmlstatemachinemetatype/tst_qqmlstatemachinemetatype.cpp:28:54: error: cannot initialize a parameter of type 'QQmlTypeLoader *' with an rvalue of type 'QQmlEnginePrivate *'
         28 |         QCOMPARE(attachedType.attachedPropertiesType(QQmlEnginePrivate::get(&e)),
            |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
      /Users/qt/work/install/lib/QtTest.framework/Headers/qtestcase.h:89:26: note: expanded from macro 'QCOMPARE'
         89 |     if (!QTest::qCompare(actual, expected, #actual, #expected, __FILE__, __LINE__))\
            |                          ^~~~~~
      /Users/qt/work/install/lib/QtQml.framework/Versions/A/Headers/6.11.0/QtQml/private/qqmltype_p.h:112:63: note: passing argument to parameter 'typeLoader' here
        112 |     const QMetaObject *attachedPropertiesType(QQmlTypeLoader *typeLoader) const;
            |                                                               ^
      1 error generated.
      
      

      Build log: https://testresults.qt.io/logs/qt/qtscxml/1c14b3c27007e45fc087f05091867619007c652e/MacOSMacOS_15arm64MacOSMacOS_15arm64Clangqtci-macos-15-arm-104-b19a34UseConfigure_WarningsAreErrors/753ec5c1a8d69558a2fe146217e7dab0e6c12d13/build_1750211775/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtscxml/tasks/1750210931

      Tested changes (refs/builds/qtci/dev/1750210300):
      https://codereview.qt-project.org/c/qt/qtscxml/+/653940/2 Update dependencies on 'dev' in qt/qtscxml

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes