You should not change the cursor pos in resize event. The reason behind this is simple. You need a pointer/cursor to do resize or any mouse move operation. You are moving the cursor to the center of the window while you resize which in turn resizes your widget to the cursors(moved) location and so on.. until height =0.
Bookmarks