I am guessing that the layout is calling QWidget::resize() directly on your label, and that triggers a repaint of the widget. As an experiment, you could replace your custom QLabel with a custom widget derived directly from QWidget and see what happens there. If you do that, be sure to implement the sizeHint() (and maybe minimumSizeHint()) method so the layout has some guidance.I expected their resizeEvent methods to be called when the bars are hidden and shown, but they are not.
Bookmarks