caryone |
2022-04-14 14:26 |
QStyledItemDelegate重写paint显示GIF图片画上去后但是没有动画效果,鼠标再根节点上移动才有效果
代码如下: voidtreeViewItemDelegate::paint( QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index)const { if(0 ==index.column()) { painter->drawPixmap(20,10,16,16, m_pLable->movie()->currentPixmap()); } else { QStyledItemDelegate::paint(painter,option,index); } } 求大佬解答下 问题是: 再节点上已经显示但是没有动画效果,鼠标再节点上移动才有动画效果 |
|