Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt3D Extras and Qt3D Core support in Qt 6.7.2 ?
Forum Updated to NodeBB v4.3 + New Features

Qt3D Extras and Qt3D Core support in Qt 6.7.2 ?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 166 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • IamSumitI Offline
    IamSumitI Offline
    IamSumit
    wrote last edited by
    #1

    Hello all,

    I am writing a 3D application for drawing the curve using Qt3D extras and Qt3D Core library using Qt 6.7.2 in QML. For this I have added the following in my CmakeLists.txt -
    find_package(Qt6 6.5 REQUIRED COMPONENTS Quick)
    find_package(Qt6 REQUIRED COMPONENTS 3dextras)
    target_link_libraries(appTest3D PRIVATE Qt6::3dextras)
    qt_standard_project_setup(REQUIRES 6.5)

    I am getting the following error also-
    QQmlApplicationEngine failed to load component
    qrc:/qt/qml/Test3D/Main.qml:114:9: Qt3DExtras.Camera - Qt3DExtras is neither a type nor a namespace

    Please help me out - whether and which thing I have missed ?

    Be Cute

    JoeCFDJ JKSHJ 2 Replies Last reply
    0
    • IamSumitI IamSumit

      Hello all,

      I am writing a 3D application for drawing the curve using Qt3D extras and Qt3D Core library using Qt 6.7.2 in QML. For this I have added the following in my CmakeLists.txt -
      find_package(Qt6 6.5 REQUIRED COMPONENTS Quick)
      find_package(Qt6 REQUIRED COMPONENTS 3dextras)
      target_link_libraries(appTest3D PRIVATE Qt6::3dextras)
      qt_standard_project_setup(REQUIRES 6.5)

      I am getting the following error also-
      QQmlApplicationEngine failed to load component
      qrc:/qt/qml/Test3D/Main.qml:114:9: Qt3DExtras.Camera - Qt3DExtras is neither a type nor a namespace

      Please help me out - whether and which thing I have missed ?

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote last edited by JoeCFD
      #2

      @IamSumit
      Upgrade Qt to the latest and you will be able to find enough examples under
      Examples/Qt-6.9.0/quick3d and Examples/Qt-6.9.0/quick3dphysics

      IamSumitI 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        @IamSumit
        Upgrade Qt to the latest and you will be able to find enough examples under
        Examples/Qt-6.9.0/quick3d and Examples/Qt-6.9.0/quick3dphysics

        IamSumitI Offline
        IamSumitI Offline
        IamSumit
        wrote last edited by
        #3

        @JoeCFD As per our project requirement, we cannot upgrade to higher version only 6.7

        Be Cute

        1 Reply Last reply
        0
        • IamSumitI IamSumit

          Hello all,

          I am writing a 3D application for drawing the curve using Qt3D extras and Qt3D Core library using Qt 6.7.2 in QML. For this I have added the following in my CmakeLists.txt -
          find_package(Qt6 6.5 REQUIRED COMPONENTS Quick)
          find_package(Qt6 REQUIRED COMPONENTS 3dextras)
          target_link_libraries(appTest3D PRIVATE Qt6::3dextras)
          qt_standard_project_setup(REQUIRES 6.5)

          I am getting the following error also-
          QQmlApplicationEngine failed to load component
          qrc:/qt/qml/Test3D/Main.qml:114:9: Qt3DExtras.Camera - Qt3DExtras is neither a type nor a namespace

          Please help me out - whether and which thing I have missed ?

          JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote last edited by
          #4

          @IamSumit said in Qt3D Extras and Qt3D Core support in Qt 6.7.2 ?:

          QQmlApplicationEngine failed to load component
          qrc:/qt/qml/Test3D/Main.qml:114:9: Qt3DExtras.Camera - Qt3DExtras is neither a type nor a namespace

          1. According to the docs, the Camera type is in Qt3D.Render, not Qt3D.Extras: https://doc.qt.io/qt-6/qml-qt3d-render-camera.html
          2. In QML, you don't prefix the type with the module/namespace. So write Camera instead of Qt3DRender.Camera (exception: If you apply a Qualifier to the import statement, then you would prefix the type with the Qualifier; see https://doc.qt.io/qt-6/qtqml-syntax-imports.html )

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved