<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Hi Nyall,</div><div><br></div><div>Nyall Dawson wrote:<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What I can't work out is why Qt widgets themselves badly handle hidpi<br>
screens. E.g. a QDockWidget on hidpi has a TINY close button. I think<br>
that needs fixing in Qt itself though, and until they do we just learn<br>
to squint... but we DON'T try to hack around it using the pixel ratio<br>
settings.<br>
<br>
I also can't work out how to automatically scale layout<br>
padding/margins by font metrics. It seems a huge endeavour to manually<br>
set all these... yet without doing so the layouts on hidpi look very<br>
cramped because widgets a smooshed up against each other with barely<br>
any padding.<br>
<br>
Bah. I wish my laptop could run natively in a low dpi mode with the<br>
correct aspect ratio. I'd just do that until Qt gets its mess sorted<br>
out.<br></blockquote><div><br></div><div>What you call "low dpi" really isn't that low, and you might want to test true "low dpi" setups as well as the "high dpi".</div><div>I have an arch linux box connected to my TV which IIRC is about 21DPI.</div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255);float:none;display:inline">haven't been able to build QGIS master on that machine, but I </span>gave up on trying to get other QT5 programs to render properly - using qt5ct I can almost get them to work, but some widgets and text are microscopic.</span></div><div>FWIW QT5 isn't alone with its problems - 

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255);float:none;display:inline">if I se</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">t the dpi correctly (which also requires using extremely large fonts)</span>

there are also major problems 

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">with programs like Libreoffice and Opera and Seamonkey if it is using GTK3 </span>- i.e. some 

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">widgets and fonts</span> are microscopic or giant.<br></div></div></div></div>