Quote Originally Posted by Charvi View Post
For 1) I tried reimplementing the resizeEvent() of the iwdget. But for some reason my resizeEvent() is not being called. Does anybody have any idea when the resizeEvent() of any widget will be called?
When the widget is resized.

For 2) I tried reimplementing the mousePressEvent and the mouseMoveEvent. In the first one I stored the position of the mouse Press and then int he second one I detected the mouse move event position and simply called the move(new_position - old_position) to move the widget. It works to some extent, the widget does move but not so smoothly there's some problem, it sometimes goes to the top left corner. It just doesn't work correctly some of the times.
Apparently you are not doing any checks on the data you receive.

Have you seen the [wiki]Moving widgets[/wiki] article in our wiki?