How to animate expanding of QListWidgetItem?



  • I have QListWidget, and each item has its own widget (e.g. _listWidget->setItemWidget(itm,lbl)). how can I animate expanding of QListWidgetItem when one is selected?

    this, of course, doesn't work, because QListWidgetItem doesn't inherit QWidget
    @QListWidgetItem * itm = new QListWidgetItem; ...
    QPropertyAnimation * anim = new QPropertyAnimation(itm,"sizeHint",this);
    ...
    anim->start();@


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.