On Thu, Jan 6, 2022 at 12:54 PM Ulf Hermann <ulf.herm...@qt.io> wrote:

> > Person is a `QObject`, the `Age` is a gadget I've exposed from C++.
>
> Then it's easy. If the "age" property is declared in C++, already today
> you can do the following (just like with font):
>
> property var person: Person {
>      age {
>          years: 12
>          months: 4
>      }
>
>      Simulation.onAdvanced: age.months++
> }
>

Yes, I'd intended to also provide:

property var age: Age {}


However, I just saw that my whole reasoning is moot, as gadgets appear to
be wrapped in a QObject anyway.
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to