[Interest] Tempalted QObjects

Prav pr12og2 at programist.ru
Wed Feb 24 12:50:02 CET 2016


>> "For example, I implemented support for templated QObjects in moc
>> <https://codereview.qt-project.org/49864/>, but this was not merged because
>> it did not raise enough interest within the Qt project."

> Not even that.
> The required condition is that someone figure out how to provide a meta object
> to template classes. The current solution would require installing the file
> generated by moc, #include'ing it from your class's header file, and modifying
> the internal format heavily (i.e., a Qt 6.0 task).

> This is unlikely to change in the current C++ language. If you want templated
> QObjects, please join SG7 discussion group in isocpp.org and help define
> reflection for C++. Then hopefully Qt will be able to use this feature in the
> early 2020s.

Thiago's and Jean-Michaƫl's statements looks contradictary for me.
This is because https://codereview.qt-project.org/49864/ does not work or what?




More information about the Interest mailing list