[SOLVED] Meaning of Q_D in Qt source code
-
Searched the web site for this code (from Qt 5.4.1 source code), and couldn't find any information:
Q_D(QXmlStreamReader);
What does Q_D mean?
-
Hi and welcome to devnet,
Qt uses the pimpl pattern in source code.
Each class define a Private class that hide the private part of a class in the header files.
Q_D is a macro used to create/manage this private implementation.IIRC in the wiki there's an article related to this topic
-
hi, the article is here
-
@mcosta Thank you. The provided link gave a good instro on this.