- improve support for on the fly rotation of our window. Schedule the image update for a future frame so we don't block right away and clear the current image. This also fixes loading multiple images during a rotation as it takes time for geometry changes to apply to QT

This commit is contained in:
Alfred Reynolds
2021-08-06 17:29:28 +12:00
parent a2c452fdcd
commit 2e96ea4814
3 changed files with 31 additions and 25 deletions

View File

@@ -41,3 +41,9 @@ void ImageSwitcher::start()
connect(&timerNoContent, SIGNAL(timeout()), this, SLOT(updateImage()));
timer.start(timeout);
}
void ImageSwitcher::scheduleImageUpdate()
{
// update our image in 100msec, to let the system settle
QTimer::singleShot(100, this, SLOT(updateImage()));
}