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>