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

Scene3D's visibility property causes block of QML application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.14.1, 5.14.2
    • None
    • Windows

    Description

      When setting the visibility property of a Scene3D item to false, the whole QML application blocks. The documentation of Scene3D mentions the Qt3D simulation loop does stop when doing so, but it should not block the whole application. Strangely, it does not happen if the scene is the only item in the application window.

      I tried Qt 5.14.1 and 5.14.2, on Windows 10.

      To reproduce this, run the following QML application:

      import QtQuick 2.14
      import QtQuick.Controls 2.14
      import QtQuick.Window 2.14
      import QtQuick.Scene3D 2.14
      import Qt3D.Core 2.14
      import Qt3D.Render 2.14
      import Qt3D.Extras 2.14
      
      ApplicationWindow {
         visible: true
      
          Component.onCompleted: {
              scene.visible = false;  // Blocks app
          }
      
          Scene3D {
              id: scene
              anchors.fill: parent
      
              Entity {
                  components: [
                      RenderSettings {
                          activeFrameGraph: ForwardRenderer {
                              clearColor: "red"
                          }
                      }
                  ]
              }
          }
      
          // Remove Label an blocking dot not happen anymore. Quite puzzling!
          Label {
              text: "Foo"
          }
      }
      

      Attachments

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

        Activity

          People

            mkrus Mike Krus
            marcel__ Marcel Schoch
            Votes:
            10 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes