Important: Please read the Qt Code of Conduct -

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);

Log in to reply