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

Qt Quick naming clash with Qt 3D QML component names

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.5.0 RC
    • 5.5.0 Beta
    • Canvas3D
    • None
    • 1c8cf3c9de9259d87e18d13cb42c7fe73cbc9005

    Description

      it seems both modules register the same names with QML:

      Qt 3D:
      qmlRegisterExtendedType<Qt3D::QTexture3D,
      Qt3D::Render::Quick::Quick3DTextureExtension>(uri, 2, 0, "Texture3D");
      qmlRegisterType<Qt3D::QTextureImage>(uri, 2, 0, "TextureImage")
      Q_PROPERTY(QUrl source ..

      Qt Canvas 3D:
      qmlRegisterUncreatableType<CanvasTexture>(uri, 1 0, "Texture3D",
      qmlRegisterUncreatableType<CanvasTextureImage>(uri, 1, 0,
      "TextureImage",
      Q_PROPERTY(QUrl src ....

      These can be confusing as they appear also in the generated documentation. Canvas3D objects are non-creatable so those can be changed easily without breaking API compatibility.

      Attachments

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

        Activity

          People

            e0348803 Miikka Heikkinen
            pakerane Pasi Keränen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes