Widget position in QVBoxLayout can be changed by
layout->insertWidget(new_widget_position,
layout->takeAt(current_widget_position)->widget())
I would like to animate widget position change in sliding animation.
Widget position in QVBoxLayout can be changed by
layout->insertWidget(new_widget_position,
layout->takeAt(current_widget_position)->widget())
I would like to animate widget position change in sliding animation.
That is not possible with a QBoxLayout.
But it is easily possible to layout manually using setGeometry();
This can be called continuously timer controlled with varying coordinates.
See this answers for related questions: How to keep my QMainWindow always inside of the desktop? and QSplitter in two directions
Or you can facilitate QPropertyAnimation to handle timing and start and end position for you.