You could initialize a member variable in your QProjector
with receivers(SIGNAL(hold()))
, and every time the slot is called, you decrement it. When the counter reaches 0
, you reinitialize with receivers(SIGNAL(hold()))
and projects another pattern.
Of course, in this scenario hold()
is a terrible (non-semantic) name, you should rename it to patternRead()
or something like that.