This could have issues - the QTimer will be deleted automatically when this is destroyed (all Qt objects ehhibit that behaviour). If unique_ptr also tries to delete, we'll have a problem. Recommend remove unique_ptr changes from all QObject-derived classes.