Reputation: 739
I'm trying to set the height of my QLineEdit box - to match my button next to it. No matter what I try I can't seem to get it to change.
I've tried changing the sizePolicy to expanding, setting minimum, maximum and baseSize - height to any value, no effect.
I've tried to add a qss rule - with height to any value - no effect.
I've tried to put it in a QFrame wrapper - setting a size on this - and try to make the QLineEdit box expand to fill up this - no effect.
Any ideas?
Upvotes: 0
Views: 3130
Reputation: 739
Ah!
I found the culprit! I had a line of code running: element.setFixedHeight(..)
After removing this - setting sizePolicy to expanding worked wonders!
Upvotes: 1