Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QtWinMigrate as route to Linux - or not?



  • As the subject says, can QtWinMigrate be used as a route to getting an MFC program to run on Linux using Qt or is QtWinMigrate only a way to run a mixed Qt/MFC program on Windows? If I can't migrate like this, can someone suggest a good guide to migrating an MFC program to Linux that covers both the QT/GUI aspects but also points out a few of the Windows/Linux issues that I might hit along the way (the program is large but pretty simple simple so no stranger hardware access etc. ;-) ).

    Thanks,
    Papapdeltasierra.


  • Lifetime Qt Champion

    @papadeltasierra said in QtWinMigrate as route to Linux - or not?:

    can QtWinMigrate be used as a route to getting an MFC program to run on Linux using Qt or is QtWinMigrate only a way to run a mixed Qt/MFC program on Windows?

    It is a tool to get an MFC program ported to Linux. How much you port, is up to you. If you need to get this running on Linux, you will need to remove MFC completely.

    At this point you should really consider your both options:

    1. Start a new program from scratch
    2. Migrate your existing program

    I cannot tell you which way is faster and less error prone, though.



  • @aha_1980 So is the idea behind QtWinMigrate that I might do the following?

    1. Get my Windows MFC application compiling and running using QtWinMigrate
    2. Over time, migrate more and more MFC to Qt, but still being able to compile and run the program, but only on Windows
    3. At the point that ALL the MFC has been migrated to Qt, complete remaining steps that allow me to complete the port to mixed Windows or Linux.

    Is that the expected flow?
    Thanks,
    Papadeltasierra


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    More or less, yes, that's the idea.

    Depending on your app's complexity, you might be able to port it directly to Qt.


Log in to reply