Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
AW: [cdt-dev] QT and slots in headers

> Von: cdt-dev-admin@xxxxxxxxxxx [mailto:cdt-dev-admin@xxxxxxxxxxx]Im
> > 
> > Hello,
> > It seems like having something like "public slots:", which 
> is often used
> > with QT, in a header file destroys the whole outline. Is 
> there a workaround?
> > 
> 
> "public slots:" does not seem like valid C++ syntax ..
> Maybe you can add a preprocessor macro to get by
> 
> -Dslots=""

This is what Qt does: in qobjectdefs.h you can find:

#define slots 
#define signals protected
#define emit

Bye
Alex


Back to the top