@Franz-Hirschbeck said in QSharedPointer<const QObject> results in compiler errors when used in metatyping (Q_DECLARE_METATYPE):
Is there something wrong with my setup?
Yes, but not syntax-wise.
Am I the only one using QSharedPointer to const object with signal/slot?
QSharedPointer doesn't really make any sense here, as you're reference counting (externally) an object, that is never supposed to be detached (copied). What should be the purpose of having a QSharedPointer instead of say const QObject *?
Edit: Well, I'd missed that this is an old-ish topic when I replied