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. Configuration type of qml not found in qt 5.15 ?
Forum Updated to NodeBB v4.3 + New Features

Configuration type of qml not found in qt 5.15 ?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 3 Posters 641 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.
  • S Offline
    S Offline
    sofiane
    wrote on last edited by sofiane
    #1

    Even after import Qt3D.Core 2.0, Configuration type with which I can use controlledcamera no longer exists in qt 5.15 ?

    import QtQuick 2.5
    import Qt3D.Core 2.0
    import Qt3D.Render 2.0
    import QtQuick.Scene3D 2.0
    import QtQuick.Window 2.2
    import Qt3D.Extras 2.0

    Item {
    Scene3D {
    id: scene3d
    anchors.fill: parent
    aspects: "input"

            Entity {
                id: root
    
                Camera {
                        id: mainCamera
                        projectionType: CameraLens.PerspectiveProjection
                        fieldOfView: 45.0 / 8.0
                        nearPlane:   0.1
                        farPlane:    1000.0
                        viewCenter: Qt.vector3d( 0.0, 0.0, 0.0 )
                        upVector:   Qt.vector3d( 0.0, 1.0, 0.0 )
                        position: Qt.vector3d( 0.0, 0.0, 10.0 )
                        aspectRatio: scene3d.width / scene3d.height
               }
                Configuration{
                    
                }
                
                Mesh {
                    id: myMesh
                    source: "qrc:/models/waterPlane.obj"
                }
                
                PhongMaterial {
                    id: myMaterial
                    ambient: Qt.rgba( 0.3, 0.3, 0.3, 1.0 )
                    diffuse: Qt.rgba( 0.7, 0.7, 0.7, 1.0 )
                }
    
                Entity {
                    id: myEntity
                    components: [ myMesh, myMaterial ]
                }
            }
        }
    

    }

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      No such component exists https://doc.qt.io/qt-5/qt3d-qml.html. I've checked 5.14 and 5.12 and it's not there either. Are you sure such component has ever existed?

      (Z(:^

      S 1 Reply Last reply
      0
      • sierdzioS sierdzio

        No such component exists https://doc.qt.io/qt-5/qt3d-qml.html. I've checked 5.14 and 5.12 and it's not there either. Are you sure such component has ever existed?

        S Offline
        S Offline
        sofiane
        wrote on last edited by sofiane
        #3

        @sierdzio Thank you for your answer.
        It's here but I don't know if it's still supported by qt 5.15
        https://doc.qt.io/archives/qt-5.6/qml-qt3d-core-configuration.html, I'm trying to load a .obj 3d file using qml and display it, do you have any knowledge on how to do that? any example of code?

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Isn't it the same as just Camera?

          As for .obj: looks like Mesh is the way to go.

          I can't help much more, I have never used Qt3D.

          (Z(:^

          1 Reply Last reply
          0
          • T Offline
            T Offline
            Tanya_Rastogi
            wrote on last edited by
            #5

            How can I add the top view to the existing rotation in above shadow-map-qml example , such that it looks like we are seeing the whole thing through Y-axis?

            sierdzioS 1 Reply Last reply
            0
            • T Tanya_Rastogi

              How can I add the top view to the existing rotation in above shadow-map-qml example , such that it looks like we are seeing the whole thing through Y-axis?

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              @Tanya_Rastogi said in Configuration type of qml not found in qt 5.15 ?:

              How can I add the top view to the existing rotation in above shadow-map-qml example , such that it looks like we are seeing the whole thing through Y-axis?

              Asking this in a separate thread is a good first step towards getting an answer :-)

              (Z(:^

              1 Reply Last reply
              0

              • Login

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