I have found a similar question: Can you set the animation speed of a QTreeWidget?
I tried adding to the stylesheet:
QTreeWidget {
widget-animation-duration: 1000;
}
But the animation delay for collapse and expansion continued the same, I think the default value is 0.