Qt equivalent to boost :: shared_from_this?

I have some classes that are derived from boost :: shared_from_this - how can I execute the equivalent in Qt? (without overriding a similar shared_from_this, I would prefer a solution without inheritance)

+4
source share
2 answers

QEnableSharedFromThis was recently added in Qt and will be in version 5.4.

+2
source

If you mean the ability to get QSharedPointer from this - there was a function request , but as far as I can see, this is not yet implemented in the official Qt release.

+2
source

Source: https://habr.com/ru/post/1439880/


All Articles