tags:

views:

94

answers:

1

hello
i have a scene with a multiple (QGraphicsTextItem)s, and i need to have control over their colors , so how to change a color of a QGraphicsTextItem ? is it possible anyway? i've been trying for 3 days until now . please help


thanks in advance

+2  A: 

I think you can change the text color by calling the method:

void QGraphicsTextItem::setDefaultTextColor ( const QColor & col );

You have an example here:

http://doc.trolltech.com/4.3/graphicsview-diagramscene.html

bruno