[Development] C++ QML Interface thoughts

Luke Parry pumpkinteapot at gmail.com
Tue Jan 6 12:47:21 CET 2015


I am having issues trying to implement a c++ qml interface/wrapper that
supports virtual overrides. Something functionally similar to boost::python
would be excellent.

This should be generic enough to also support non-QObject classes too so it
rules out signals and slots. On first glance, it is fairly trivial to
implement a wrapper that calls methods for the pointer, however
implementing virtual overrides soon becomes difficult.

I want to achieve something like this ( http://pastebin.com/t3k957Hf )  In
principle, this would work creating instances in QML but not the other way
transforming from a c++ instance.

Is this feasible with QML without some compromise?  I would like to think
I'm missing something subtle or something blatantly obvious.

Huge Thanks
Luke Parry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150106/d7f5750b/attachment.html>


More information about the Development mailing list