Skip to main content
Professional
Associate III
Feb 11, 2019 2:40 PM UTC
Question

Blinking an image

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

This topic has been closed for replies.

4 replies

Martin KJELDSEN
Principal III
Feb 11, 2019 10:18 PM UTC

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

Professional
Associate III
Feb 12, 2019 1:03 PM UTC

Hello

thanks for your reply, but how can i declare handleTickEvent()

i tried :

void HomeView::handleTickEvent()

{

}

in my view .cpp, but doesn't compile