Ok, I got that, but I have dynically located buttons in QGridLayout, which is taking too much place in my app. How do I resize it? Shold I resize every pushbutton added to QGridLayout or resize QGridLayout itself?