Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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