I have a QLabel derived objects in a layout, in a centralWidget, in a QMainWindow. I want them to resize whenever the statusBar, menuBar, or toolBar are hidden/shown. (I have code that chooses a font based on the QLabels "contentsRect")

I expected their resizeEvent methods to be called when the bars are hidden and shown, but they are not. It looks like the frame that contains the QLabels expands when the bars are hidden (and vice-versa) but the QLabel resizeEvent is not called.

What is the correct way to explicitly invoke the resizeEvent() methods for these QLabel derived objects?