[Qt-interest] Q_CLASSINFO macro expansion
z
zoomer.gm at gmail.com
Sat Jan 23 21:49:57 CET 2010
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>
In this example DBUS_INTERFACE is not expanded, when passed to Q_CLASSINFO :(
I created a class, and only want to state that it implements interface
with name, defined as DBUS_INTERFACE.
It indeed works, if i just write Q_CLASSINFO("D-Bus Interface",
"org.kde.test.dbserver"), but the point is i want the interface name
to be defined separately, because it shared with the client, so it can
connect to proper interface.
More information about the Qt-interest-old
mailing list