How to use the Qt's PIMPL idiom?
问题 PIMPL stands for P ointer to IMPL ementation. The implementation stands for \"implementation detail\": something that the users of the class need not to be concerned with. Qt\'s own class implementations cleanly separate out the interfaces from the implementations through the use of the PIMPL idiom. Yet, the mechanisms provided by Qt are undocumented. How to use them? I\'d like this to be the canonical question about \"how do I PIMPL\" in Qt. The answers are to be motivated by a simple