Neither QWidget::update() nor QWidget::rect() are "virtual" in C++, thus they cannot be overridden.
How did you end up with the slider and button overlapping?
Even if the slider's drawing is only occupying a part of its area, the layout should still have position the button outside of the slider's bounding box.
Cheers,
_
Bookmarks