I was actually hoping to write a simple “app” that inspects the meta objects, and generates code based on that, instead of going the shiboken way and trying to parse the C++ Code myself (though I am looking into shiboken as well). I’m also looking into misusing clang(d) to parse it :) In the best case I would use C++ reflection of course :)
> On 28. Nov 2024, at 18:18, Thiago Macieira <thiago.macie...@intel.com> wrote: > > On Wednesday 27 November 2024 23:45:02 Pacific Standard Time Marcus Tillmanns > via Development wrote: >> I would like to script the creation and usage of all of the QWidget classes. >> What’s the likelihood of acceptance (of a merge request) if I were to add >> Q_INVOKABLE to the constructors and methods of each QWidget derived class >> and QWidget itself? > > First, is going through the meta object the correct thing to do here? What > scripting language are you using and how are you binding the rest of Qt to it? > > It seems to me that if you want to do an "everything in scripting" > programming, you want to generate code to generate the binding more > efficiently > than to add to the meta objects. See the Qt for Python's shiboken for some > help here. > > -- > Thiago Macieira - thiago.macieira (AT) intel.com > Principal Engineer - Intel DCAI Platform & System Engineering > -- > Development mailing list > Development@qt-project.org > https://lists.qt-project.org/listinfo/development -- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development