class Switch : public State { public: int a; };
QSharedPointer myState= QSharedPointer(new Switch()); QSharedPointer mySwitchTest = qSharedPointerCast(myState);
C'est mieux que (Switch*)myState.data() non ?