$ 0 0 hi Allopen QWidget::resizeEvent() which you can reimplement in your widget.In this you can change the grid.celwidth.