Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

QQmlComponent ReferenceError not coming through via errors()

$
0
0
I remember having to do something similar where I would display all qml errors to the user. I’m not sure if there is a cleaner way to do this but what I did was to install a new message handler and then intercept application messages and filter errors. I guess you can have a global error list that gets populated by a custom message handler which you can then access from anywhere in your application. Maybe you can clear the list after each access. Depends on your requirements. Or you could have multiple lists e.g: qmlReferenceErrors, qmlScriptErrors, etc, which would also be populated by a custom message handler. I do not remember finding a list of reference errors anywhere. Please do let us know if you find a cleaner way to do this.

Viewing all articles
Browse latest Browse all 4972

Trending Articles