code: def setGridColor(self, color):
          
          palette = self.palette()
          palette.setColor(palette.GridForeground, QColor(color))
docs: Sets the color for the grid for this instance to the given color.
          
          :param      color | <QColor>