On terça-feira, 30 de janeiro de 2018 11:41:22 PST René J. V. Bertin wrote:
> Thiago Macieira wrote:
> > .cpp files can be moc'ed too. You just need to #include the output at the
> > end of the file.
> 
> I know that, what I've never figured out is how to generate it. Maybe you
> have to rebuild from scratch?

Rerun qmake. It'll scan the files in SOURCES and HEADERS for the Q_OBJECT or 
Q_GADGET macros, then automatically moc them. Headers produce 
moc_headername.cpp, sources produce sourcename.moc. #including both is a good 
idea

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



_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to