Originally Posted by georgie
Q_D macro declares a variable that points to the private part of the implementation, while Q_Q works the other way around --- gives you access to public part of the implementation.Qt Code:
#define Q_D(Class) Class##Private * const d = d_func() #define Q_Q(Class) Class * const q = q_func()To copy to clipboard, switch view to plain text mode
If you want to know why the implementation is split into public and private part, ask google about "pimpl".
Bookmarks