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

qml tool fails to load scenes where root is not Window or Item

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.0 Beta3
    • 6.3.0
    • QML: Tooling
    • None
    • All
    • 1e3bf94b251ee8e8fcf156514df0c3a9b385d5d2 86fa3e117a001452d3ab0f6c7d813981300f15f2

    Description

      Typically, in a Qt Wayland Compositor, the root object will be a WaylandCompositor and the Window will be created per WaylandOutput. In the "qml" tool, it requires that the root object of the scene is a Window, otherwise it exits early. This is inconsistent with the behavior of "qmlscene".

      For an example, the minimal-qml example in Qt Wayland can be used.

      Run "qml main.qml" and it prints out "Did not load any objects" before exiting. Run "qmlscene main.qml" and it runs fine.

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              esabraha Eskil Abrahamsen Blomfeldt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes