[Development] qdoc for C++ and QML

Jędrzej Nowacki jedrzej.nowacki at qt.io
Tue Apr 25 11:26:51 CEST 2017


On mandag 24. april 2017 14.05.17 CEST Sean Harmer wrote:
> Hi,
> 
> are there any plans to reduce/remove the redundancy when writing
> documentation for both C++ and QML? Seems a waste of time to have to
> copy/paste or update the docs twice for both languages when really the
> only things differing are the "Q" prefix on the class names in C++.
> (...)

You can create shared blocks of docs in a separate qdocinc file and use them 
with " \include file.qdocinc" command. It is not perfect, as you would not see 
the full docs in the source code, but it generates the right thing.

Cheers,
  Jędrek



More information about the Development mailing list