I've created the bug report:
https://bugreports.qt.io/browse/QTBUG-81093
On 1/2/2020 7:48 AM, Alexander Dyagilev wrote:
Hello,
Why this can happen?
I'm getting empty root objects, errors in Application Output tab in Qt
Creator and empty qmlWarnings variable.
m_engine.reset(newQQmlApplicationEngine);
QList<QQmlError>qmlWarnings;
qtconnect(m_engine.data(),&QQmlApplicationEngine::warnings,
[&qmlWarnings](constQList<QQmlError>&warnings)
{
qmlWarnings.append(warnings);
});
m_engine->load(qmlUrl);
if(m_engine->rootObjects().isEmpty())
{
m_initFailed.first=true;
m_errorDesc=QObject::tr("QMLloadfailure.");
}
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest