Bug 501674 - ApplicationWindow.pageStack with QML Component: Created graphical object was not placed in the graphics scene.
Summary: ApplicationWindow.pageStack with QML Component: Created graphical object was ...
Status: CONFIRMED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 6.12.0
Platform: Arch Linux Linux
: NOR minor
Target Milestone: Not decided
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-18 03:26 UTC by Trần Nam Tuấn (Bill)
Modified: 2025-04-07 09:46 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trần Nam Tuấn (Bill) 2025-03-18 03:26:25 UTC
SUMMARY
Using ApplicationWindow.pageStack with a QML Component triggered the warning message "Created graphical object was not placed in the graphics scene." In my use case, this happens with both pageStack.initialPage and pageStack.push(). The page works fine afterward. The warning is just annoying. Also, the message is not triggered if an object is passed in instead, i.e. using the createObject() method of the QML Component even with parent set to null.

SOFTWARE/OS VERSIONS
OS: Arch Linux 
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Comment 1 Arjen Hiemstra 2025-04-07 09:46:46 UTC
The warning comes from upstream Qt. There was a change between Qt 6.6 and Qt 6.7 that makes it quite a bit more prominent, I'm currently unable to find the exact change though. There is an upstream bug report for this issue at https://bugreports.qt.io/browse/QTBUG-124926 .