Are those initial values correct? Remember that widgets show an incorrect size before show() is called for the first time. And when those values change, does the widget actually get resized? The changes are significant, so you'd surely notice that. Which values are correct?