[Interest] Tempalted QObjects

Thiago Macieira thiago.macieira at intel.com
Wed Feb 24 18:25:10 CET 2016


On quarta-feira, 24 de fevereiro de 2016 14:50:02 PST Prav wrote:
> >> "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?

It works, but is not acceptable.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list