Are you using the Qt plugin for Visual studio? If not, that'll make your life a lot easier. Then you can just compile your Qt code directly inside the IDE using the VS compiler.