Thanks, I've realized this.
Nevertheless, the basic problem persists also for myQGraphicsScene.
I have creator, destructor, and drawItems in myQgraphicsScene, and that is all.
Apparently, this is not enough, since I get:
/Library/Frameworks/QtGui.framework/Versions/4/Headers/qgraphicsscene.h:237: error: 'QGraphicsScenePrivate* QGraphicsScene::d_func()' is private
and more of the same.
There is a macro "Q_D(QGraphicsScene);" in the original QGraphicsScene which is defined as
#define Q_D(Class) Class##Private * const d = d_func()
expands into
QGraphicsScenePrivate const d = d_func()
To put toghether a simplified version of all myself this makes me think I'm on thin ice.
I prefer to have a good reason and understanding for the stuff I put in the subclass files, and in this case I can't say I do.
Please direct me on a minimal and consistent way of introducing and using (my)QGraphicsScenePrivate class here.