简体   繁体   中英

Using Qt animation framework for custom delegate in a QListView

I would like to add an effect of moving rows, like a store, in a QListView using QAnimation. I use a custom delegate to render things from a QStandardItemModel. My delegate is a custom widget.

The paint method in the delegate creates the widget, paints it and destroys it. I have no direct access to each custom widget displayed. Nevertheless, I would like to use setPos() within the animation to move this "not accessible" widget.

Any ideas?

Thank you

Your description of what you want to achieve is not very clear. Have you thought of moving the animation into the QListView? It should have visibility of all items in it's model.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM