Qt5 ListView switch items animation
QML and Qt Quick
6
Posts
3
Posters
1.6k
Views
1
Watching
-
Hi
is there is a way to change animation of switching items in ListView?
thanks
-
Hi Jens
thanks for you reply
tried to add
@displaced: Transition {}
addDisplaced: Transition {}@but the behavior is still the same
-
Exactly!
I do not want any animation :) -
Does it work with self implemented QAbstractListModel?
I tried, but no animation happens on add, remove, etc...@ beginInsertRows( QModelIndex(), rowCount(), rowCount() );
m_list << entity;
endInsertRows();@@add: Transition {
SequentialAnimation {
NumberAnimation { property: "opacity"; from: 1; to: 0.0; duration: 400 }
NumberAnimation { property: "scale"; from: 1; to: 0.0; duration: 400 }
}
}@