[PyQt] Labelled QGraphicsItem
jspies at gmail.com
Mon Sep 6 03:30:49 BST 2010
I'd like to have QGraphicsItems (squares and circles) that have editable
QGraphicsTextItems attached to them. I can do this with a
QGraphicsItemGroup or use two items (connected with an instance variable),
but I want the ability to, at times, move the labels around the item
(independent of the group moving), edit them, and even do batch moves like
"center all selected item labels inside the attached QGraphicsItem". I'll
be adding/removing these labelled items to/from a QGraphicsScene using the
Does anyone know of a simpler/better way to do this or perhaps have a class
already made to be used directly or as an example?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt