how can we put the text in some certain place with QGraphicsScene
I hope to use the function QGraphicsScene::addText() to put some texts in some specified place. But the default position is: (0,0).
How can I work around this problem?
Thanks!
Re: how can we put the text in some certain place with QGraphicsScene
Quote:
QGraphicsTextItem * QGraphicsScene::addText ( const QString & text, const QFont & font = QFont() )
it returns a graphics text item which is inherited from graphics item. You can set the position using QGraphicsTextItem->setPos(x,y) ... :)
Re: how can we put the text in some certain place with QGraphicsScene
I try it, but why my QGraphicsTextItem still at the default position is: (0,0).?
Re: how can we put the text in some certain place with QGraphicsScene
Quote:
You can set the position using QGraphicsTextItem->setPos(x,y) .
Did you try that too ??? setPos function ?