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

QML Quick3D Helper classes are not exported and cannot be compiled in direct mode

XMLWordPrintable

    • 507242ade (dev)

      So far, I've noticed that PlaneGeometry (Qt\6.9.1\msvc2022_64\include\QtQuick3DHelpers\6.9.1\QtQuick3DHelpers\private\planegeometry_p.h) is not exported. So the following snippet:

          PlaneGeometry {
              id: plane
              property int w: plane.width
          }
      

      plus

      set_target_properties(<target> PRIAVTE QT_QMLCACHEGEN_ARGUMENTS "--direct-calls")
      

      is enough to cause an unresolved symbol build error because I am trying to refer to the "width" symbol.

      Another example is "InfiniteGrid". It is not exported either, so

          InfiniteGrid {
              id: grid
              property int v: visible
          }
      

      also causes unresolved symbol error. But unlike PlaneGeometry, problem with InfiniteGrid can be solved by explicitly binding to "grid.visible" instead of just "visible". On the other hand, PlaneGeometry problem is currently unsolvable. I don't know where the difference come from, but I think it is better to export all classes.

        For Gerrit Dashboard: QTBUG-138692
        # Subject Branch Project Status CR V

            janichol Andy Nichols
            luqiaochen Luqiao Chen
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes