Migrate from MFC visual studio 2008 to Qt5
Moved
Unsolved
General and Desktop
-
@Chris-Kawa, so using qtwinmigrate library mean convert all the MFC dependency of the project to Qt5 dependency right?
@willkom said:
so using qtwinmigrate library mean convert all the MFC dependency of the project to Qt5 dependency right?
qtwinmigrate is a stopgap solution that allows MFC and Qt to coexist in a single app and embed widgets in MFC windows so you can port all your MFC classes one by one. When you're done qtwinmigrate is no longer used and can be removed from your project.
So if you decide to use it the steps are:
- Port your app to VS2019 (still with just MFC)
- If you want to use Qt Creator you'll probably want to port your solution from .sln to qmake or CMake.
- Add qtwinmigrate to your project and use it to create a Qt event loop inside your MFC application
- Using qtwinmigrate start porting your MFC classes one by one to Qt
- When you're done remove qtwinmigrate from your project
- Remove MFC dependencies from your project (libs, includes etc.)