Get page coordinates of QgsComposerMap

المشرف العام

Administrator
طاقم الإدارة
How do I get the coordinates in page units (i.e. millimetres) for a QgsComposerMap item?

I can get the upper left coordinate using pos, but can't see any method that provides access to the width and height, or the lower right coordinate.

>>> map_item = composition.getComposerItemById('map')>>> map_item.pos()PyQt4.QtCore.QPointF(6.0, 6.0)

أكثر...
 
أعلى