I want to show and hide a widget with an interval of one second. My code is like:
if(ui->widget->isVisible())
ui->widget->hide();
else
ui->widget->show();
I need a one-second gap between showing and hiding my widget. I also want this to be repeated so that the widget starts blinking.
With QTimer it should be posible: