Spacing in a dock that contains 7 buttons [resolved]
Hi,
I have a dock that contains 7 QPushButton, I want them to be a little more near the top. So, I'm trying to put a spacer with the simple fonction layout.addSpacing(30) to "push" the buttons up, whatever the real number. But, it puts space under AND above...I can have space only on the top, but not the bottom...
Any tip??
Thanks!!
Re: Spacing in a dock that contains 7 buttons
I would recommend that you implement this using QT Designer, instead of manually coding the layout.
Re: Spacing in a dock that contains 7 buttons
Re: Spacing in a dock that contains 7 buttons
thanks for both answers!
I tried with Qt Designer and it helped me thanks. I had already tried addStretch but it didn't work either....that was a problem with my sizePolicy...