If you only want to call a slot once off a timer you could look at something like
QTimer::singleShot(500, this, SLOT(MySlot()));
Then your guaranteed it will only happen once.
To clarify, by calling the static version of this rather then calling it from a existing timer it will only happen once.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…