[SOLVED] how to position Text in a QGraphicsScene
General and Desktop
8
Posts
4
Posters
18.7k
Views
3
Watching
-
Hi,
you can use the
setPos()function.QGraphicsTextItem *text = scene->addText("Hello World"); text->setPos(100, 200); -
@youzking said:
thank you , !!
You're welcome.
When the problem is solved, you should do:
- Mark the post as SOLVED (helps when someone is looking for a solution for a problem)
- Vote the best answers you received (optional but helps to find which answers really contributed to the solution)
-
@youzking said:
thank you , !!
You're welcome.
When the problem is solved, you should do:
- Mark the post as SOLVED (helps when someone is looking for a solution for a problem)
- Vote the best answers you received (optional but helps to find which answers really contributed to the solution)
-
@youzking said:
thank you , !!
You're welcome.
When the problem is solved, you should do:
- Mark the post as SOLVED (helps when someone is looking for a solution for a problem)
- Vote the best answers you received (optional but helps to find which answers really contributed to the solution)
-
@bjakubb
text = self.scene.addText('Hello world')
text.setPos(150, 200)