Re: UI Support for high DPI monitors

Posted by dxli on
URL: https://forum.librecad.org/UI-Support-for-high-DPI-monitors-tp5711067p5711155.html

Yes, we really need a cleanup here:

We have hard coded buttons in CAD toolbars, while QActions manually added to the menu bar. They need to be consistent.

For hard coded buttons, we have hard coded size policies as well.

I feel we should add the qactions to cad toolbars from c++.

Do you want to get hands wet playing? I can set up a branch and start sharing changes with you.


<quote author="stranger573">
Hi dxli,

All the widgets for which hard fixed size in pixels - this is a problem for high resolution display! Layer list and block list too.

For cadtoolbar hard fixed width (qg_cadtoolbar.ui file):
...
<width>66</width>
...
<sizepolicy hsizetype="Fixed"
...

Note: 66 pixels for 200 dpi, is 8.382 mm. In this place on the width of the two buttons, it ~3x3 mm button!
</quote>