I have C++ widget code that was generated by QtDesigner (Qt open source v 4.7.3, using the Form->View Code menu in QtDesigner).
I have modified that code in a manner that is entirely Qt compliant - just hand coded a few more signals, slots and wigdets based on the patterns of the generated code - code runs perfectly when built with Code::Blocks.
Now I'd like to convert my modified C++ source back into the ui XML format that QtDesigner uses. I'm looking for a quick way of doing that (Win7-32 platform).
Any suggestions?
TIA
The c++ is a really complex language to parse, so it would be really hard / long / expensive to develop such a tool I guess.
The general rule is to never modify generated code ( in your case the code is generated by Qt designer)
You can
- Subclass the generated class and put your modifications in the sub class
- Code all your interfaces by yourself from scratch.
- If you think Qt designer lack features you can request them or submit patches to Qt. But I don't think Qt intend to extend that, since QML has become the new way to go with interfaces.
The best option for you is probably the first.