I´m trying to convert an old VB6 project to Qt/C++. Anyone knows a throughout way to do that?
Thanks
I´m trying to convert an old VB6 project to Qt/C++. Anyone knows a throughout way to do that?
Thanks
Its all very nice for others to tell you to rewrite your application from scratch. They don't have to do the work.
It is possible to translate automatically from one language to another, in spite of serious differences in "style". You might not get the nicest program in the world, but then, with all these great coders that were around when it was built, you already don't have the nicest application in the world. And if you follow the advice of those that say, "rebuild it from scratch", unless it is tiny, you likely won't have any program at all.
See my SO answer on how to translate programming languages for an alternative. Also not easy or cheap, but practical.
Qt and VB have entirely different idioms, I don't think it would make sense to "port" the application. I hope there is no tool to convert between those two platforms anyway, god help the author(s) if there was.
Your best bet is to start writing the application from scratch in Qt, it's not a VB6 application anymore.
Having the old application as a requirements reference is fairly magnificent. It will describe your inputs, outputs fairly well. You should avoid using it as a design reference, though. I mean that from the programming point of view. The GUI elements can look the same if its appropriate, though it is a good opportunity to reconsider if there is a better way to do things.
Though i am very late but for reference I think I should write an answer. I understand that I am not talking about Translation of VB to QT, But Feasibility of compilation using QT library. The tool Gambas will be helpfull. It takes a similar almost VB like syntax and use QT and GTK to render widgets. If you need C++ code then NO it cant do.
EDIT: Gambas3 is a VB like RAD environment. It Uses QT to render widgets. The syntax is almost similar to VB. With few modifications existing apps can be used. This way rewrite of application may be avoided.