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

New common warning: Created graphical object was not placed in the graphics scene.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7
    • None

    Description

      Starting with Qt 6.7 we started getting this old-new warning very often:

      qrc:/contents/ui/BaseApp.qml:249:9: QML MainPage: Created graphical object was not placed in the graphics scene.

      The thing is, I don't remember asking.

      It is way more prominent in Kirigami giving that we've been instantiating the pages not parented to anything — so they are not memory-managed by QObject chain, and only then passing them to a native method which takes over the ownership and inserts them into the graphics scene.

      So while the warning is admittedly cool for preventing n00b mistakes, it actively harms our case up to the point that even knowledgeable community members managed to merge a pointless and logic-breaking patch just for the sake of silencing a dumb new warning which they did not fully understand.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ratijas ivan tkachenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes