PDA

View Full Version : Positinoning in GraphicsScene without using GraphicsItem



salmanmanekia
16th June 2008, 06:58
Hi,
I have added two text in my scene by using command addText();but both the text overlap each other,can anyone tell me a way that i can somehow change the position of text without being making things as item and using its setPos() function...
is there any way to avoid the making of my own item ???..Thanks

wysota
16th June 2008, 07:02
But those "text objects" are items :) Take a look at QGraphicsTextItem, that's exactly what gets added to the scene with QGraphicsScene::addText() (see what the method returns), so you can use setPos() on the resulting item.

salmanmanekia
16th June 2008, 07:11
Thanks Wyosta....but later i would be banging some more questions on it ...Thanks and Keep up the good work !!!...;)