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

[Reg 6.5 -> 6.6] Using `CameraLens.ProjectionType` as type hinting cause runtime error

    XMLWordPrintable

Details

    • e516ef519 (dev), 0af12845a (dev), 297641b42 (6.7), 1d2be36ee (6.7), 68bf4948f (6.6), 60fd389d4 (tqtc/lts-6.5), 8a340d485 (tqtc/lts-6.2)

    Description

      import QtQuick
      import Qt3D.Render
      import Qt3D.Core
      
      Entity {
       id: sceneRoot
       function positionCamera(requestedProjectionType: CameraLens.ProjectionType) {
           return 0;
       }
      } 

      When running this qml on version 6.6 it will fail with:

      qrc:/main.qml:11:11: Type CameraLens has no inline component type called ProjectionType
              function positionCamera(requestedProjectionType: CameraLens.ProjectionType) {
                       ^

      Running Qt 6.5 will not fail. It doesn't fail on other type hints I've tried (haven't tried them all obviously)

      Attachments

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              roussinm Maxime Roussin-Bélanger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: