When you resize a window it need to repaint the child windows. So, you can force the repainting after changing these values.
To force repainting I think you can try this: (I've never needed to do this, but I think it will work)
You can call this function (recommended):
void QWidget::update() [slot]
To copy to clipboard, switch view to plain text mode
And if it doesn't work you can try:
void QWidget::repaint() [slot]
To copy to clipboard, switch view to plain text mode
In the help you can find this notes:
About update:
This function does not cause an immediate repaint; instead it schedules a paint event for processing when Qt returns to the main event loop. This permits Qt to optimize for more speed and less flicker than a call to repaint() does.
Warning about using repaint:
We suggest only using repaint() if you need an immediate repaint, for example during animation. In almost all circumstances update() is better, as it permits Qt to optimize for speed and minimize flicker.
I think calling the update will work.
Bookmarks