Hi,
I have custom QGraphicsTextItem whose instances are added to a QGraphicsItemGroup subclass. The textitem has TextEditorInteraction as textinteraction flags.

Now whenever the size of the textitem changes due to text entered by keyboard the group doesn't seem to update its childrenRect and hence when the group is selected later , the selected rect remains smaller and the some part of text of text item remains outside the selected rect.
For now i have this hack

Qt Code:
  1. void PropertyText::focusOutEvent(QFocusEvent *event)
  2. {
  3. QGraphicsTextItem::focusOutEvent(event);
  4. trimText();
  5. if(group()) {
  6. group()->addToGroup(dummy);
  7. group()->removeFromGroup(dummy);
  8. delete dummy;
  9. }
  10. }
To copy to clipboard, switch view to plain text mode 

Can this be regarded as a bug in Qt ? Also are there any better/efficient workarounds ?

I'm using Qt-4.3 - x11