@QML ToolBar: Binding loop detected for property "implicitWidth""
Something was anchored by me when it shouldn't have been (as some items are automatically anchored). Maybe it was the toolbar - i can't remember right now, but that one sounds right.
This is how i'm creating things at runtime right now:
function createByData(targetQmlSourceCode, parentItem, targetQmlModuleName) {
try {
var component = Qt.createQmlObject(targetQmlSourceCode,
parentItem,
targetQmlModuleName);
return component;
}
catch (error) {
console.error("There were QML errors:" + JSON.stringify( error.qmlErrors));
}
return 0;
}
function createByData(targetQmlSourceCode, parentItem, targetQmlModuleName) {
try {
var component = Qt.createQmlObject(targetQmlSourceCode,
parentItem,
targetQmlModuleName);
return component;
}
catch (error) {
console.error("There were QML errors:" + JSON.stringify( error.qmlErrors));
}
return 0;
}
To copy to clipboard, switch view to plain text mode
The documentation was a little but fuzzy about details like how to access the "qmlErrors" object and that you have to use try{} and catch(){} blocks for the cases where Qt.createQmlObject would otherwise suicide-bomb the qmlapplicationengine.
Now that my frustration with this problem has faded, i'd like to apologize if i might have sounded a bit harsh.
Thank you guys for your contribution!
Bookmarks