There are already multiple versions compiled with QT5 and fully working on Win7.
First one you can grab here: https://forum.videohelp.com/threads/405407-NON-OFFICIAL-Windows-builds-of-MKVtoolnix/page3#post2672418
Second one here: https://github.com/jpsdr/MKVToolnix-QT5-Windows-7
The first version seems to be updated regularly and available few hours or days after official release. It is opensource, so everybody can do this.