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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes