Minimal requirement to update a QLabel's text and show it
Solved
General and Desktop
-
My point was that QProgressBar doesn't do anything special with regard to other widgets surrounding it (as you saw from its implementation). It's a border effect, nice in your case, but I wouldn't rely on it.
@SGaist said in Minimal requirement to update a QLabel's text and show it:
It's a border effect
What does that mean? Are you saying something like: the
QProgressBar::repaint()
call (inQProgressBar.setValue()
) just happens to cause theQLabel
to repaint because the widgets are close to each other, there is some overlap? -
From a quick look, it goes down to the rendering engine, I haven't read the whole implementation to determine exactly how the repainting of one of the widget triggers an update of the whole "container" widget.