[Qt-qml] Plugins in QML?
Akos Polster
akos.polster at gmail.com
Fri Oct 29 11:11:48 CEST 2010
For property changes that's indeed sufficient. But how about other "plugin" pattern use cases, like charting plugins for a spreadsheet app etc.
In other words, I'm looking for the QML equivalent of something like the QPlugin framework
~ Akos.
On Oct 28, 2010, at 20:29 , <alan.westbrook at nokia.com> <alan.westbrook at nokia.com> wrote:
> 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
>
--
Akos Polster
mailto:akos at pipacs.com
http://akos.pipacs.com
More information about the Qt-qml
mailing list