Visual Studio MFC project in Qt Creator
How can I open and compile Visual Studio MFC project (and solution) in Qt Creator?
10 replies
You could load the project into Visual Studio, and then export it to a .pro file using the VS plugin. This is kind of a one way process and the .pro file it produces might need some hand crafting.
It’s not possible for any project except projects using Qt. I have MFC project (without Qt libraries), how can it be exported?
In the .pro file that’s generated, just add the line
- CONFIG -= qt
to remove the Qt dependencies.
(There may be something else you have to do… others will jump in and comment if there is.)
There’s always the tried-and-true method of using
- qmake -project
as documented here to generate a .pro file from a collection of source files. It’s not the same as porting from a VS project file, but it’s an option.
Thanks. But if I have about 100 projects and their files collected in many subdirs (which have sometimes subdirs too)?..
Yes. I can use
- qmake -project -r
I also can write some script. Thanks, mlong, you gave me a good idea. The most problematic is to port options of solution and projects, but that’s non Qt side :)
You must log in to post a reply. Not a member yet? Register here!





