When the widget is resized.
Apparently you are not doing any checks on the data you receive.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.![]()
Have you seen the [wiki]Moving widgets[/wiki] article in our wiki?
Bookmarks