error log filter
This commit is contained in:
parent
dc438b135a
commit
4c0a177747
@ -6,7 +6,9 @@ QQuickItem *DoricStackNode::build() {
|
|||||||
const QUrl url(QStringLiteral("qrc:/doric/qml/stack.qml"));
|
const QUrl url(QStringLiteral("qrc:/doric/qml/stack.qml"));
|
||||||
component.loadUrl(url);
|
component.loadUrl(url);
|
||||||
|
|
||||||
qCritical() << component.errorString();
|
if (component.isError()) {
|
||||||
|
qCritical() << component.errorString();
|
||||||
|
}
|
||||||
|
|
||||||
QQuickItem *item = qobject_cast<QQuickItem *>(component.create());
|
QQuickItem *item = qobject_cast<QQuickItem *>(component.create());
|
||||||
return item;
|
return item;
|
||||||
|
@ -6,7 +6,9 @@ QQuickItem *DoricVLayoutNode::build() {
|
|||||||
const QUrl url(QStringLiteral("qrc:/doric/qml/vlayout.qml"));
|
const QUrl url(QStringLiteral("qrc:/doric/qml/vlayout.qml"));
|
||||||
component.loadUrl(url);
|
component.loadUrl(url);
|
||||||
|
|
||||||
qCritical() << component.errorString();
|
if (component.isError()) {
|
||||||
|
qCritical() << component.errorString();
|
||||||
|
}
|
||||||
|
|
||||||
QQuickItem *item = qobject_cast<QQuickItem *>(component.create());
|
QQuickItem *item = qobject_cast<QQuickItem *>(component.create());
|
||||||
return item;
|
return item;
|
||||||
|
Reference in New Issue
Block a user