2019-02-11 6:40 AM
Hello
is it possible to make an image blink with the animated image widget (it seem that we need 2 images, but i only have one image to make it blink : it ON or OFF every 500ms)
thanks
best regards
2019-02-11 2:18 PM
Hi,
You could simply, in the handleTickEvent() method of your view (virtual), count ticks (1 tick =~ 16.66 ms) and then call .setVisible(true) or setVisible(false) on your Image (Not Animated Image).
Hope this helps,
Best regards
Martin
2019-02-12 5:03 AM
Hello
thanks for your reply, but how can i declare handleTickEvent()
i tried :
void HomeView::handleTickEvent()
{
}
in my view .cpp, but doesn't compile
2019-02-12 5:31 AM
Hello
OK thanks i have found an example
best regards
2019-02-12 5:39 AM
Great :) Just to be specific - You probably needed the declaration of the method in your header file. And from there on you could just use modulo to flip the image visible and invisible.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.