Qt 6.11 is out! See what's new in the release
blog
[SOLVED] Meaning of Q_D in Qt source code
General and Desktop
4
Posts
2
Posters
2.3k
Views
1
Watching
-
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
-
@mcosta Thank you. The provided link gave a good instro on this.