[Qt-qml] Loading QML plugin from the resource system
Juha Turunen
turunen at iki.fi
Thu Jan 20 10:08:33 CET 2011
On Thu, Jan 20, 2011 at 11:03 AM, Sampo Savola
<samposav at mail.student.oulu.fi> wrote:
>
> The reason I wanted to use QML plugin in the first place was that I
> want to use my existing quite complex QWidget in my QML application
> with QGraphicsProxyWidget. And based on the documentation and
> examples, the recommended way to use QWidget's in QML applications is
> to make them as QML plugins.
>
> By including the plugin in Qt's resource system would make deploying
> the plugin with the application a bit easier.
Hi Sampo,
you can introduce new types to QML engine also by using:
http://doc.qt.nokia.com/4.7-snapshot/qdeclarativeengine.html#qmlRegisterType
Like Kai said, plugins are handier when you want to share.
Juha
More information about the Qt-qml
mailing list