I've got a mainwindow item that I want to only allow resizing when dimensions meet certain criteria. I esseitially want a mainwindow that will "snap" to different dimensions. I'm not sure how to do this just yet. I know I can over-ride the resize event, but that only gets the event after the window is already resized.

Any suggestions?