PDA

View Full Version : How to change the sizeHint() of a horizontal spacer from code



Momergil
24th January 2014, 02:16
Hello!

I added a horizontal spacer in the .ui of a given dialog and I noticed that I'm able to edit the width and height values of the sizeHint, but I couldn't find how to access that values (to edit them) by code. Is there any way to do this?

Thanks,

Momergil

ChrisW67
24th January 2014, 06:28
QSpacerItem::changeSize() and the other functions of that class. Generally though there would be no reason to do this.