It sounds like you are using an old version of Qt Visual Studio integration. You need to contact Nokia with your appropriate license details for an updated version of the application.
Alternatively, you can download the free VS integration tool from Nokia's website.
If you wish to do neither, you can normally get the ui files to open by deleting the first line.
Bookmarks