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

Live Preview hanging with QtQuick3D scene

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 5.15.6
    • Quick: 3D
    • None
    • Windows

    Description

      This scene is hanging when running it using the live preview (qmlpreview tool).
      The same scene is working with Qt 5.15.5

      import QtQuick 2.15
      import QtQuick.Controls 2.15
      import QtQuick3D 1.15
      
      Rectangle {
          width: 1024
          height: 768
      
          color: Constants.backgroundColor
      
          Text {
              text: qsTr("Hello untitled953d")
              anchors.centerIn: parent
              font.family: Constants.font.family
          }
      
          View3D {
              id: view3D
              anchors.fill: parent
      
              environment: sceneEnvironment
      
              SceneEnvironment {
                  id: sceneEnvironment
                  antialiasingMode: SceneEnvironment.MSAA
                  antialiasingQuality: SceneEnvironment.High
              }
      
              Node {
                  id: scene
                  DirectionalLight {
                      id: directionalLight
                  }
      
                  PerspectiveCamera {
                      id: camera
                      z: 350
                  }
      
                  Model {
                      id: cubeModel
                      eulerRotation.y: 45
                      eulerRotation.x: 30
                      materials: cubeMaterial
                      source: "#Cube"
                      DefaultMaterial {
                          id: cubeMaterial
                          diffuseColor: "#4aee45"
                      }
                  }
              }
              
              Rectangle {
                  id: rectangle
                  x: 191
                  y: 131
                  width: 200
                  height: 200
                  color: "#16236f"
              }
          }
      }
      

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes