You may try subclassing QRubberBand and setting palette while drawing.