[Qt-qml] Plugins in QML?
alan.westbrook at nokia.com
alan.westbrook at nokia.com
Thu Oct 28 20:29:19 CEST 2010
I think for global property changes, you would use some sort of javascript module instead.
// theme.js
function rectColor() {
// however you decide
}
// themeRect.qml
import "theme.js" as Theme
Rectangle {
color: Theme.rectColor()
}
On Oct 27, 2010, at 10:01 AM, ext Akos Polster wrote:
> (As opposed to QML plugins.)
>
> I wonder what could be the building blocks for a pure QML plugin system. (Or maybe there is one already - please forgive my ignorance, I'm totally new to QML.)
>
> Consider the use case of "theming" for example. Like how to create a ThemedRectangle element, which, depending on the available "themes" + user preferences, creates pink rectangles in one case, and blue ones in another.
>
> Right now I think the Loader element could be the base of such a system. Any other/better approaches?
>
> ~ Akos.
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml
More information about the Qt-qml
mailing list