How to painlessly migrate from MFC to Qt
summary
Shows an incremental migration path that keeps MFC running while replacing UI pieces with Qt, using QtWinMigrate to merge event loops and host QWidget inside CWnd and Qt Visual Studio Tools to add .ui, moc and uic to the MSBuild project. Claims migration beats a full rewrite past roughly 30–60k LOC. Demonstrates automated conversion of MFC resources to Qt .ui, preserving feature parity in a mixed MFC‑Qt app, notes focus and drag‑drop caveats, and reports the approach works in real customer projects.
AI-written summary · about
chapters (11)
- 0:00Introduction to MFC migration
- 3:19Migration vs rewrite comparison
- 8:46Cleaning up the codebase
- 11:01Integrating Qt into MFC
- 18:29Mixed MFC-Qt application
- 21:27Migrating UI files
- 26:19Porting message maps and data exchange
- 36:55Finalizing dialog migration
- 39:50Handling controls and abstractions
- 44:15Automating the migration process
- 44:59Conclusion and key takeaways
related talks
44mQtinUse - Using Qt to bring Maya into the 21st Century
41mC++ Migration Strategies
51mNavigating Win32 App Development with WinUI and WPF
01h 30m“Qt as a C++ Framework: History, Present State and Future”
52mMigration Paths and Tooling from Xamarin to .NET MAUI
01h 29mGetting Started - a Qt fast track 1/4 - Overview
01h 19mGetting Started - a Qt fast track 4/4 - Application Creation
23mMigrating from UIKit to SwiftUI efficiently
