Created
September 13, 2018 05:39
-
-
Save wille-io/cd0ddc7a0aa16abac330350f6fc982d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| connect(mYourClass, &YourClass::destroyed, this, [this](QObject *obj) | |
| { | |
| if (static_cast(mYourClass) == obj) | |
| mYourClass = nullptr; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment