[Qt-interest] Slots in threads ?
Sean Harmer
sean.harmer at maps-technology.com
Fri Aug 28 12:52:19 CEST 2009
Hi,
On Friday 28 Aug 2009 11:39:10 Patric wrote:
<snip>
> and I was forward declaring the SimulationEngine class with
>
> class SimulationEngine;
>
> and I just changed it to #include "simulationengine.h"
>
> but why it was not working before ?
It did not work before as just having a forward declaration is not enough
information for the compiler to determine that those objects are QObjects when
it compiles the connect() statement. Once you #include the header files for
your object(s) then the compiler can determine that they do inherit QObject.
Cheers,
Sean
More information about the Qt-interest-old
mailing list