[Interest] QML/C++ interaction in Qt6
Jérôme Godbout
godboutj at amotus.ca
Fri Sep 11 16:12:15 CEST 2020
Will Qt 6 still use the Meta information to access Qml properties or it rely more on compiled C++ now? I guess it still the same as before.
Is the properties declaration of Qt for MCU (Qml lite or soemthign like that) be available (syntax wise, template)? That would leverage soo much redundent code to expose properties with get/set and changed event. That will be a slim fast for code that expose to Qml (to Meta data actually, Qml use the meta data) and maybe event make that layer disapear one day.
-----Original Message-----
From: Interest <interest-bounces at qt-project.org> On Behalf Of Ulf Hermann
Sent: September 11, 2020 6:20 AM
To: interest at qt-project.org
Subject: Re: [Interest] QML/C++ interaction in Qt6
> - Allow QML to access public properties of classes, even if these
> public properties do not use `Q_PROPERTY`
> - Allow QML access to classes that are neither `QObject`, nor
> `QGadget`
This is not planned right now. Note that we rely on moc to generate the class descriptions that QML uses. Therefore, we need constructs like Q_OBJECT, Q_GADGET and Q_PROPERTY to make things visible.
best regards,
Ulf
_______________________________________________
Interest mailing list
Interest at qt-project.org
https://lists.qt-project.org/listinfo/interest
More information about the Interest
mailing list