Avoid crash when a QML component fails to load


QQmlComponent::create() results were used unchecked, so a
failed component became a null dereference in
QObject::setParent() and the QML error was lost. Report the
error and leave the graph uninitialized instead, isReady()
now covers that state, so scene updates and series handling
stay inert.

Pick-to: 6.12 6.11 6.8
Fixes: QTBUG-147576
Change-Id: Iccee33219c36540419f4725ac849af0c1c7ec1da
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
commit9544cd541e96765639ca74cc1bb0861f5bccbcdb
parent81015796d479a3bc991732b5a7d9d58c5dff49f6
authorAssam Boudjelthia <assam.boudjelthia@qt.io>
committerAssam Boudjelthia <assam.boudjelthia@qt.io>
commit timeThu, 3 Sep 2026 09:13:12 +0000