Use QPainter for legend. Update legend icon