PDA

View Full Version : How to enforce height on an html element inside QLabel?



Vadi
20th January 2010, 14:26
How can I enforce a height on an html element that I'm inserting into a QLabel? It seems that width/height is being completely ignored, and I tried max- variants of them too. Set the style to be display:block; overflow:hidden; also, but my element is still growing out of it's proportions instead of 'wrapping' text into the space available.

Vadi
23rd January 2010, 13:16
Anyone know?

I just can't get the CSS properties of width / height respected in my elements, and I don't see much in the docs about this.