A quick example to show how to block a Qt window from resizing unintenionally.