You can use timer to fire each iteration:
// somewhere, lets say in constructor of SomeClass:
int m_i = 0; // class member
connect(timer, SIGNAL(timeout()), SLOT(slotTimeout()));
m_timer->start(20);
// slotTimeout()
void SomeClass::slotTimeout()
{
// insert your image
++m_i; // generally ++i is faster than i++
}
// somewhere, lets say in constructor of SomeClass:
int m_i = 0; // class member
m_timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), SLOT(slotTimeout()));
m_timer->start(20);
// slotTimeout()
void SomeClass::slotTimeout()
{
// insert your image
++m_i; // generally ++i is faster than i++
}
To copy to clipboard, switch view to plain text mode
That will give some time for event processing between timeouts.
Bookmarks