[Development] RFC: Scriptable Widgets
Shawn Rutledge
Shawn.Rutledge at qt.io
Thu Nov 28 13:15:06 CET 2024
> On Nov 28, 2024, at 09:08, Fabian Kosmale via Development <development at qt-project.org> wrote:
> - Some are already (indirectly) exposed via Q_PROPERTY; should anyone decide to expose those Widgets to QML (or some other language binding working on the meta-object system), this would cause some friction because there will be name clashes (QWidget::geometry() vs the geometry property).
Indeed; given that the UI designer application, and QUiLoader, are able to dynamically instantiate every kind of widget, and all the interesting properties are, well, properties, it seems doubtful that there are many things that you couldn’t already do in a scripting language either. And some property setters are already slots, which already makes them invokable, and is also a bit redundant already (if QProperty can set the property, the main reason for making the setter into a slot besides is to be able to connect a signal to it, right?)
More information about the Development
mailing list