Q_OBJECT, Memento Pattern