You can try using a more recent pre-built version of ParaView, which if I remember correctly, bring their own build of Qt. Here are a couple of blog posts I wrote several months ago for other OpenFOAM versions:

You might need to manually download the files mentioned in either one of them. Whenever wget is mentioned, means that the link next to it is what you have to download manually.
You can also skip to one of the latest ParaView 3.12.0 or 3.14.1 versions...