PDA

View Full Version : Converting MFC application to QT



abcd1234
26th June 2014, 20:01
Hi Guys,

I am fairly new to Qt. I am working in a company which has there applications GUI built in MFC. They want to migrate to Qt. I have been following http://doc.qt.digia.com/solutions/4/qtwinmigrate/winmigrate-walkthrough.html article but I am not able to get anywhere. Can someone please let me know how to start? What steps should I take? The application is already built and is running using MFC. I need to convert it to Qt. Any help would be appreciated.

anda_skoa
27th June 2014, 09:11
You can proceed with one of two approaches:

- separate any business logic from UI and make it buildable separately. then build a new UI with Qt

- use #ifdef to disable all code that does not build without MFC, then port each section to its Qt equivalent

Or a combination of both.

Cheers,
_

abcd1234
27th June 2014, 17:15
Hi Anda_skoa,

Thanks for the reply. On a curious note: what is qtwinmigrate? I was reading about it and seems like it is only available with Enterprise edition of Qt.

anda_skoa
28th June 2014, 10:32
It looks like a public repository to me https://qt.gitorious.org/qt-solutions/qt-solutions/source/fd22bee22274975c56f1c10d87ee9fd2c0818f83:qtwinmigr ate

Never heard about or used that tool though, no idea how good it is.

Cheers,
_