Bug 501674

Summary: ApplicationWindow.pageStack with QML Component: Created graphical object was not placed in the graphics scene.
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Trần Nam Tuấn (Bill) <tuantran1632001>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: ahiemstra, nate, notmart
Priority: NOR    
Version First Reported In: 6.12.0   
Target Milestone: Not decided   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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 .