On Tuesday, 2012-11-20, Michal Dorner wrote:

>     qmlRegisterType<Test>("MyModule", 1, 0, "Test");
> 
>     engine = new QQmlEngine();
> 
> 
>     component = new QQmlComponent(engine,
> QUrl::fromLocalFile("module.qml"));
> 
> 
>     if (!component->isLoading()) {

I think you can just call component->isError() here, unless your module.qml 
refers to some QML that is loaded asynchronously.

But overall it looks similar to what I have in a project that uses QML in a 
similar fashion.

Cheers,
Kevin
-- 
** Qt Developer Conference: http://qtconference.kdab.com/ **

Kevin Krammer | [email protected] | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to