2019-02-11 06: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 02: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 05: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 05:31 AM
Hello
OK thanks i have found an example
best regards
2019-02-12 05: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.