resized the windows works with Qt 5.1 (not Qt 5.0)