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!
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!
it returns a graphics text item which is inherited from graphics item. You can set the position using QGraphicsTextItem->setPos(x,y) ...QGraphicsTextItem * QGraphicsScene::addText ( const QString & text, const QFont & font = QFont() )
learning_qt (28th November 2008)
I try it, but why my QGraphicsTextItem still at the default position is: (0,0).?
Did you try that too ??? setPos function ?You can set the position using QGraphicsTextItem->setPos(x,y) .
Bookmarks