uhhh oops, my mistake. Forget about this topic :)

On Thu, Oct 4, 2012 at 12:36 PM, Sivan Greenberg <[email protected]> wrote:
> IIRC, this was supported long ago and is the basis for the extreme
> reuse QML enables.
>
> -Sivan
>
> On Thu, Oct 4, 2012 at 12:27 PM, Tomasz Siekierda <[email protected]> wrote:
>>> What i really miss in QML is the ability to let a component inherit
>>> functionality from another component.
>>
>> This is already a feature: just create your components in separate files and
>> use this:
>>
>> // BaseButton.qml
>> Item
>> {
>>    property int someNum: 100
>>    ... the basics for a button.
>> }
>>
>> // SpecialButton.qml
>> BaseButton // SpecialButton
>>
>> {
>>    somenum: 500
>>    ... A BaseButton adjusted for special cases
>> }
>>
>> // FancyButton.qml
>> BaseButton //FancyButton
>>
>> {
>>    ... Fancy button with special effects, shaders and whatever you can think
>> of
>> }
>>
>> _______________________________________________
>> Development mailing list
>> [email protected]
>> http://lists.qt-project.org/mailman/listinfo/development
>>
>
>
>
> --
> -Sivan
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to