Hi,
It's rather the other way around. Choose the most recent version of MinGW that supports what you need and then patch your version of Qt if needed to build.
Beside the fact that Qt 4 has reached end of life a long time ago, you should at least move to Qt 4.8.7.