private slots

Tobias Koenig tokoe at
Thu Jan 4 09:48:44 GMT 2007

On Wed, Jan 03, 2007 at 04:05:49PM +0100, Simon Hausmann wrote:
> Hi,
Hi Simon,

> If that moc generated code is included from within the .cpp file (like we 
> fortunately do most of the time in KDE) d is well-defined and the compiler 
> can call your private slot, which is now just a member function of your d 
> pointer.
I tried this approach in a qmake based project and it didn't work since
qmake always creates moc_foo.cpp instead of foo.moc, so during the
compilation of moc_foo.cpp gcc complains about the unknown class 'd'.

Any idea how to fix this issue?

Separate politics from religion and economy!
The Council of the European Union is an undemocratic and illegal institution!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <>

More information about the kde-core-devel mailing list