<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2013/6/21 Hamish Moffatt <span dir="ltr"><<a href="mailto:hamish@risingsoftware.com" target="_blank">hamish@risingsoftware.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":1py" style="overflow:hidden">
font-size: 50pt; -- works<br>
font-size: 50 pt; -- does not work - results in default font size<br>
font-size: 50px; -- works<br>
font-size: 50 px; -- does not work - results in default font size<br>
<br>
margin-left: 100pt; -- does not work - results in 0 px<br>
margin-left: 100 pt; -- does not work - results in 100 px regardless of<br>
pixel density<br>
margin-left: 100 px; -- works<br>
margin-left: 100px; -- works</div></blockquote></div><br></div><div class="gmail_extra">Doesn't surprise me much (althought it would be better if is more explicitly expressed in the docs, just in case): fonts support points because is frequently used to measure fonts, so QFont supports font sizes in points. But margins and paddings don't support it because QLayout and company don't support it.<br>
<br></div><div class="gmail_extra">I would stick to the "NNunit" notation, not "NN unit". I think only the former is the way to express it in CSS, so Qt's stylesheets follow it. If it works for margins is because only pixels are supported.<br>
</div><div class="gmail_extra"><br clear="all"><br>-- <br>Alejandro Exojo Piqueras<br><br>ModpoW, S.L.<br>Technova LaSalle | Sant Joan de la Salle 42 | 08022 Barcelona | <a href="http://www.modpow.es" target="_blank">www.modpow.es</a> <br>
<br></div></div>