We determine the structure of all bijections on the cone of positive semidefinite operators which preserve the quantum f-divergence for an arbitrary strictly convex function f defined on the positive halfline. It turns out that any such transformation is implemented by either a unitary or an antiunitary operator.