Ok, I will try that, thanks.

Yes, qt5 installs headers into a qt5-specific path, so versioning isn't a problem within Qt - it's just the installs to /usr/include that create the problem here.