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

qmlsc: error: cannot cast 'QQmlSizeValueType' to its private base class 'QSize' in direct mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P1: Critical P1: Critical
    • 6.10
    • 6.10.0
    • QML: Compiler
    • None
    • macos, arm64, Apple clang version 16.0.0 (clang-1600.0.26.4)

      when compiling this binding in direct mode, generated code is rejected by compiler:
      ```

                  required property size sizeProp
                  Drag.imageSourceSize: delegate.sizeProp

      ```

      not sure if this binding was not compiled before 6.10 or it just worked.

      ```

      [ 18%] Building CXX object CMakeFiles/test.dir/.rcc/qmlcache/test_main1_qml.cpp.o
      .rcc/qmlcache/test_main1_qml.cpp:267:10: error: cannot cast 'QQmlSizeValueType' to its private base class 'QSize'
        267 | s.v2_2 = QQmlSizeValueType(std::move(retrieved));
            |          ^
      include/Qt6/QtQml/6.10.0/QtQml/private/qqmlvaluetype_p.h:172:41: note: declared private here
        172 | struct Q_QML_EXPORT QQmlSizeValueType : private QSize
            |                                         ^~~~~~~~~~~~~
      1 error generated.

      ```

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

            qtqmlteam Qt Qml Team User
            antony.kikaxa A I
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes