Hi,
I have a custom QGraphicsTextItem with a keyReleaseEvent, but this event is never called when I release a key.
This is the way I create my custom QGraphicsItem:
Qt Code:
  1. CustomQGraphicsTextItemClass *oneTextNode=new CustomQGraphicsTextItemClass();
  2. scene()->addItem(oneTextNode);
  3. oneTextNode->setFlags(QGraphicsItem::ItemIsFocusable);
  4. oneTextNode->setFocus();
To copy to clipboard, switch view to plain text mode 

and my custom QGraphicsItem constructor has this command:
Qt Code:
  1. setTextInteractionFlags(Qt::TextEditorInteraction);
To copy to clipboard, switch view to plain text mode 

The release code is the following:
Qt Code:
  1. void CustomQGraphicsTextItemClass::keyReleaseEvent(QKeyEvent *e)
  2. {
  3. MGlobal::displayInfo(MQtUtil::toMString(QString().sprintf("Release !!!!!!!")));
  4. }
To copy to clipboard, switch view to plain text mode 

The Release function is never called. There is a keyPressEvent too, but this one gets properly called.

Thanks for your help.