Integration of Qt4.8.3 with Visual Studio 2012



  • Hello everyone,

    Recently, I have upgraded my Visual Studio to 2012. Is there any way I can integrate the latest version of Qt (or say, any version of Qt) with VS 2012, as was possible till VS 2010.

    Thanks & Regards,
    Durgesh



  • Hi,
    Very easy to say is that when the Qt is compiled in the version of studio your using it will compile. Qt normally releases the libs compiled in most common compilers. If you want to use an other one you have to download the source code of the libs and compile the source code with the compiler you want to use.
    Or simply use MSVC2010 until Qt is released in MSVC2012 ;-)
    Greetz



  • What about VS add-in plugin? Does not having this for VS 2012 mean that I'll have to moc manually (or worse)?



  • Yeah, right now I am writing the custom build rules for each UI files and .h files which has Q_OBJECT macro. This becomes very cumbersome for big projects.:(



  • To use the Qt with MSVC 2012, you'll have to compile the libraries yourself using MSVC 2012.

    As for the lack of the plugin. I do not write my own custom build rules. I setup a .pro file that contains all sources and library paths and run @qmake -tp vc -r <filename>@

    And then upgrade the resulting 2010 project to 2012 (using MSVC itself). This ensures that everything is setup correctly. However, this has to be run everytime you add a new header containing a Q_OBJECT, causing recompilation of the entire project. This might or might not be a problem at all. It isn't in my case.



  • That sounds very interesting idea, will surely give it a try :)



  • [quote author="Peter K" date="1352392476"]To use the Qt with MSVC 2012, you'll have to compile the libraries yourself using MSVC 2012.

    As for the lack of the plugin. I do not write my own custom build rules. I setup a .pro file that contains all sources and library paths and run @qmake -tp vc -r <filename>@

    And then upgrade the resulting 2010 project to 2012 (using MSVC itself). This ensures that everything is setup correctly. However, this has to be run everytime you add a new header containing a Q_OBJECT, causing recompilation of the entire project. This might or might not be a problem at all. It isn't in my case.[/quote]

    I don't mind buildin Qt from source. Already done that. But for the addin, we have a few very large projects that we are actively developing. This would be incredibly painful. Writing the build rules manually would not be much fun either. VS 2012 has been out for a while now. Is Qt planning on releasing this addin?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.