I am using Map Composition, but I found in QGIS 2.14 (Essen) Text Editor that when I try to import MapComposerit returns that this module is not found.

This is the error :

File "C:/PROGRA~1/QGISES~1/apps/qgis/./python\qgis\utils.py", line 572, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: No module named MapComposer

When I writhe in the console:

help(MapComposer)


• Perhaps the QGIS API docs might help. If you're looking to add a composer map, you may need to use from qgis.core import QgsComposerMap. – Joseph Apr 19 '16 at 15:35
• The fact is that I am following "QGIS Python Proramming Cookbook", thus, I try to follow all the steps... now, trying to create a Map Composition. I look at this modude but, I saw this class, then, can I use: qc = MapComposer.MapComposer(qmlr=reg, qmr=mr) ? Or shall I write QgsComposerMap instead of MapComposer? – user64823 Apr 19 '16 at 15:45

mapRenderer = iface.mapCanvas().mapRenderer()