I also tried returning a pixmap with no result. But maybe it is not an issue with the pixmap. I just tried to return a color
Qt Code:
  1. return QtCore.QVariant(QtGui.QBrush(QtGui.QColor(QtCore.Qt.red)))
To copy to clipboard, switch view to plain text mode 

And it didn't change the color of the cells. However it prints something if I do
Qt Code:
  1. print "test"
To copy to clipboard, switch view to plain text mode 
in the condition block.

Any idea ?