I'm developing a plugin that will enable the grid decorations(like copyright, scale bar) on the map canvas, but I don't find any clue on how to do it.
Just to clarify I don't want to create a grid inside a layer, I just want to enable the decorations grid as shown in the image below.
I've searched in the QGIS GUI and QgsMapCanvas API without any luck.
QgsDecorationGrid
class which is not exposed through the API. A workaround is well explained in this answer. Here is another link to give you an idea of which project entries you need to write to enable the grid: github.com/qgis/QGIS/blob/master/src/app/decorations/…