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