This thesis presents one approach to the gradual migration of applications based on non-portable MFC to more modern and portable Qt framework. It compares and exposes core differences between these two, describes a method of merging MFC’s message loop and Qt’s event loop in one unified loop. It also describes an intermediate layer which features two wrapper classes for modal and modeless dialogs. These classes allow easier nesting of Qt widget onto MFC parent. As a proof of concept, one dialog of application winIDEA is migrated to Qt framework. To achieve efficient, generic exchange and presentation of data on dialogs and to store changed values of the dialog entries back to the structure in memory, special structures called Data Descriptors are used.
|