Transition from MFC to QT

Currently, all of our GUI components are written in MFC. Our build environment:

Vc 6

Windows XP

I do not know if:

1) Can we replace all MFC components with Qt without changing the build environment?

2) Qt will work with VC6 as with any other library?

Answers will help me get started. At the same time, I installed Qt 4 and am trying to create some samples.

+3
source share
4 answers

1) If we can replace all MFC components with QT without changing the build environment?

Yes, you even get the MFC / Qt migration structure cf qt.nokia.com/products/appdev/add-on-products/catalog/4/Windows/qtwinmigrate/

2) Will Qt work with VC6 like with any other library?

VC6 10 !

Qt VC6 4.5 (4.6) VC6 cf qt.nokia.com/doc/4.6-snapshot/qt4-6-intro.html#performance-optimizations

+6

, VC6 Qt 4.5. (. )

: Qt, * Qt. Qt , .

, Qt, , QObject s. ( moc.)

*: Qt-. , MFC Qt, - , .

+2

MFC QT . , , . -, Qt Visual Studio.

+2

- MFC Qt.

. . , . .

MFC Qt LGL Qt, LGPL "qtwinmigrate" ( ftp://ftp.qt.nokia.com/qt/solutions/lgpl/). , Qt MFC .

I had to convert a large number of files before I could ever compile a project. When the main settings were up and running, I slowly added dialogs until the functionality matched the original version. This was much more complicated than maintaining the current MFC application and slowly changing dialogs.

So point ... USE QTWINMIGRATE!

Oh yes ... and do not use VC6. Go to something later.

+1
source

Source: https://habr.com/ru/post/1722308/


All Articles