I would like to know the easiest way to implement the pimpl idiom in Qt objects. What I want to have is something like this:
pimpl.h:
class B;
class A: public QObject {
B *b;
}
pimpl.cxx:
class B: public QObject {
}
Now, as is obvious, Qt will not pass the class B to create the moc for it. How this can be handled? I want to have the implementation of B in the .cxx explicitly.