science/paraview: Fix build with Qt 6.10.1
Backport upstream commits to fix build with Qt 6.10.1.
With hat: kde@