Animating layout reorder



  • I have a vertical layout with 2 items, separator between them, and a button.
    When I press a button I want to slide items so they interchange their positions: first item is placed on coordinates of second and the second on coordinates of first.
    Without animation, I can just remove the first and the separator from layout and then add separator and the first item. But I need to do this with sliding animation (maybe using QPropertyAnimation on "geometry"), how to achieve this?


Log in to reply
 

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