Did you try declaring the interface inside the namespace?
Qt Code:
namespace ... { class X ... { ... }; Q_DECLARE_INTERFACE(X, "..."); }To copy to clipboard, switch view to plain text mode
Alternatively you can just make your class inherit QObject and add Q_OBJECT macro, you won't need Q_DECLARE_INTERFACE then.
Bookmarks