[Interest] moc with qtbrowserplugin

Konstantin Tokarev annulen at yandex.ru
Tue Sep 25 11:26:07 CEST 2012



25.09.2012, 13:11, "Alexander Carôt" <alexander_carot at gmx.net>:
> Hello all,
>
> after having successfully compiled the trivial-example I am now trying to include further functionality to it. In that context I have a problem:
>
> The original trivial project consists of one single cpp file, which contains the class definition and below this it includes the moc:
>
> // CLASSDEF HERE ...
> };
>
> #include "trivial.moc"
> QTNPFACTORY_BEGIN("Trivial Qt-based Plugin", "A Qt-based LiveConnected plug-in that does nothing")
>     QTNPCLASS(Trivial)
> QTNPFACTORY_END()
>
> However, I want to use a "trivial.h" for the class defintion and a "trivial.cpp" for the functions.

Remove trivial.h from HEADERS (e.g. move it to SOURCES)

-- 
Regards,
Konstantin



More information about the Interest mailing list