Very bizarre things happen when I move() or setGeometry() inside a paintEvent(). It appears in the right place until the mouse hovers over it. Then the widget jumps away from the mouse and leaves a trailing rectangle behind.