Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to migrate a project developed under Borland C ++ Builder 5 to Qt
QtWS25 Last Chance

How to migrate a project developed under Borland C ++ Builder 5 to Qt

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 3.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fouad122
    wrote on last edited by
    #1

    Good Morning

    Intern at a company, I would like to migrate a project developed under Borland C ++ Builder 5 to another IDE (Qt or VS), also have your opinion on the feasibility and the different phases that you could advise me,

    I began to focus on converting borland c ++ to Qt, initially VCL -> Ui (Qt), already tried DFM2QT but converts 1/4 of all Dfm files to Ui files - QT
    So I come to you to offer me yours opinions, ideas, experiences ...

    Thank you in advance !!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SysTech
      wrote on last edited by
      #2

      Wow... sounds like a big job. How many dfms?

      I have not tried to do what you are doing but frankly I think the UI paradigm is similar but implemented differently. I mean both dfm and Qt ui files are similar but the components and setup of each component is different.

      Then there is the signal/slot thing. I used Delphi for years and I think C++ Builder is the same. Each button or control can be connected through a method and generally Builder & Delphi seem to send "Sender" arguments. I have not seen the same calling method in Qt and the signals/slots seem quite a bit more powerful.

      I think your best approach, depending upon the size of the project would be to recode the dfm related stuff mostly by hand in Qt. That way you can address each control and make sure it is done right. While this in theory should give you a reasonably close UI if you have hundreds of dfms then you are in for a long haul.

      Whatever approach you take I'd recommend that you move the code to some kind of a paradigm like MVC. As you convert/recode or whatever try to get things segregated so your interface (view) is relatively pure. Move most code to your controller and model.

      I'm sorry I don't have more advice. I've never tried such a conversion.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fouad122
        wrote on last edited by
        #3

        thank you for your quick response

        but now I am working on a small part of the solution, which contains about 1000 dfms files, it's much, I admit

        but we prefer to let the manual changes of last resort; I agree with you as I have read in various forums that it is not recommended to use the conversion tools.

        In terms of the Borland C ++ editor, I don'tt know if you had the opportunity to work on it, is there a Qt module that can be integrated to this one?

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rondog
          wrote on last edited by
          #4

          I don't believe there is anything for Qt in Borland Builder. I have used this many years ago and didn't know they were still around. Qt did have a makespec for the Borland compiler prior to version Qt 4.x by the way.

          1 Reply Last reply
          0
          • F Offline
            F Offline
            fouad122
            wrote on last edited by
            #5

            Good morning

            In general, A migration project done in a compiler to another needs different phases
            Apart the conversion of the code (dfm, cpp, hpp, ...), I would like to know the different phases and good ways to do a migration in general, also know which phases that could be critical in this process

            Thanks !

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved