I have a qt app that uses a very bad technique for resizing. The current approach is to put all the main elements inside a form, and when resizing is happening, change the size and place of the objects through custom code. It's an ugly, hard to maintain, and not good for future features approach.

What should be done is to use the tools qt have for handling layouts. I've tried and failed. I would like your help with it. e You can take a look at the app here: https://github.com/nuttyartist/notes

The source is there. Also, here is a screenshot from the qtcreator form:
http://i.imgur.com/glGn3ES.png?1

I'm okay with creating the layout through code.