The question is more if you plan to use HTML within your item. As for normal texts, you have to reimp the paint method and use the painter. Then you could set the gradient to the pen. See QGraphicsItem::paint(). You can also try to just set the pen and call the base class implementation with the modified painter.