I try to use Qts Signal/Slot mechanism with private implementation (PIMPL).

My header file is build like:
Qt Code:
  1. class Foo : public QWidget
  2. {
  3. Q_OBJECT
  4. public:
  5. ...
  6. private:
  7. class FooPrivate;
  8. FooPrivate *d;
  9. }
To copy to clipboard, switch view to plain text mode 

My source file is build like:
Qt Code:
  1. Foo::FooPrivate : public QWidget
  2. {
  3. public:
  4. ...
  5. public slots:
  6. void doSomething();
  7. signals:
  8. void emitSomething();
  9. }
To copy to clipboard, switch view to plain text mode 

Due to this private implementation, the private signals and slots are declared inside the source file and not recognized by Q_OBJECT.

Is there an other way to use the signal/slot mechanism inside a local class?

Thanks

Kai