Skip to main content
Professional
Associate III
February 11, 2019
Question

Blinking an image

  • February 11, 2019
  • 4 replies
  • 1030 views

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
February 11, 2019

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
February 12, 2019

Hello

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

i tried :

void HomeView::handleTickEvent()

{

}

in my view .cpp, but doesn't compile