Unsolved can QStyledItemDelegate::paint(), QIcon visulize dynamic .gif picture?
can QStyledItemDelegate::paint(), QIcon visulize dynamic .gif picture?
Not directly but it's doable. The paint() method is called "on demand" i.e. when the view needs to update in response to some event or signal.
An animation requires a steady rate of updates.
One way to do it would be to use a QMovie to play the gif. Then in
paint()you would paint the currentPixmap() of the movie. Last piece of the puzzle is making sure the painting is requested regularly. You could start a timer that would emit the dataChanged signal from the model for the animated item.
@Chris-Kawa thank you