A QTimer with its timeout() signal attached to a slot is perfectly reasonable. I offered the example because your initial question was completely broad and non-specific.