[Qgis-developer] Calculating screen width/height on canvas
drrunnacles at googlemail.com
Wed Jan 6 01:42:14 PST 2016
I've been trying to work out how to calculate screen width and height on
the canvas such as that used in the vector layer properties dialog under
labels and style (the QgsUnitSelectionWidget) and I'm having some trouble.
I.e. find a way to locate something X millimeters from the edge of the
I can't seem to find the classes for these dialogs or the location of the
_ui files to work out how they've done it. Would somebody mind pointing me
in the right direction or giving me a heads up on the approach used (or
I see that QPaintDevice has a widthMM() function, but I thought I read
somewhere that this is not platform independent and assume this isn't a
Any help you could give would be much appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qgis-developer