1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifndef PRIVATE_SLOT_H #define PRIVATE_SLOT_H #include <QObject> class PrivateSlotPrivate; class PrivateSlot : public QObject { Q_OBJECT public: PrivateSlot(QObject *parent = 0); private: PrivateSlotPrivate * const d; Q_PRIVATE_SLOT(d, void privateSlot()) }; #endif