[Qt-interest] Q_CLASSINFO macro expansion

Reinhardt Behm reinhardt.behm at t-online.de
Sun Jan 24 18:22:38 CET 2010


On Sunday 24 January 2010 11:42, Thiago Macieira wrote:
> Em Sábado 23. Janeiro 2010, às 21.49.57, z escreveu:
> > Hi all. Is there any way to make this work?
> > <code>
> > #define DBUS_INTERFACE "org.kde.test.dbserver"
> > Q_CLASSINFO("D-Bus Interface", DBUS_INTERFACE)
> > </code>
>
> No.

Why not define some global variable 
const char DBUS_INTERFACE[] = "org.kde.test.dbserver";
somewhere and use this.

-- 
Reinhardt Behm, 55294 Bodenheim, Burgweg 3A
reinhardt.behm at t-online.de




More information about the Qt-interest-old mailing list