I needed to do something similar a year ago; Found nothing to make it easier and faster ( link ). I can not share it, I'm afraid. Your role.
Obviously, but I did the reverse XML generated by Designer and created some interfaces to regenerate common XML blocks. Keep in mind that XML may change in later versions of Qt, and I had unit tests to validate my own XML.