Bug report #12671

Updated by Alessandro Pasotti almost 3 years ago

Cursor icon size is hardcoded to 16x16 in many parts of the code (for example: https://github.com/qgis/QGIS/blob/master/src/app/qgisapp.cpp#L2317)



this makes the cursor very difficult to see.



The modification I suggest is to add a new QgsApp method that returns the zoom factor, calculated on a 96 dpi base, this will allow to resize all GUI parts by multiplying by the zoom factor.



To get current DPI you can use (Python code):



<pre>

QgsApplication.instance().desktop().physicalDpiX()

</pre>



The very same method could be used to resize icons and other GUI elements.



Back