I’m in a situation where I need to know when a component has repainted itself. I can use the (very handy)
Timer::callAfterDelay method to delay things, which works most of the time, but obviously the delay required varies across devices. Also feels too much like a hack.
Would be nice to have an optional callback parameter to e.g.
repaint (std::function<void()> callback = nullptr)
so we know when a repaint has completed.
Unless there is another way around this problem?
EDIT - rereading the documentation, I see this may not be possible as it’s waiting for the OS to do the redrawing…