#include "main.h" #include #include #include struct Private { ~Private() { int a; }; }; struct AnotherPrivate { AnotherPrivate(const AnotherPrivate &) {}; }; Q_GLOBAL_STATIC(QObject, s_a) class MyPrivate; struct WithQSharedDataPointer { ~WithQSharedDataPointer(); WithQSharedDataPointer& operator=(const WithQSharedDataPointer &); private: QSharedDataPointer d; };