Hello,

I can't edit a QGraphicsTextItem. Only the tab key work, other keys don't work.

So, i create my scene here:

Qt Code:
  1. uml::uml(QWidget *parent)
  2. : QMainWindow(parent)
  3. {
  4. ui.setupUi(this);
  5. m_pScene = new QGraphicsScene;
  6. ui.graphicsView->setScene(m_pScene);
  7. }
To copy to clipboard, switch view to plain text mode 

And my QGraphicsTextItem:
Qt Code:
  1. QTextEdit* text= widget->findChild<QTextEdit*>("text");
  2. QString strText = methodes->toPlainText();
  3. QGraphicsTextItem* classeText = new QGraphicsTextItem(strText );
  4. classeText ->setFlags(QGraphicsItem::ItemIsSelectable | QGraphicsItem::ItemIsFocusable | QGraphicsItem::ItemIsMovable);
  5. classeText ->setTextInteractionFlags(Qt::TextEditorInteraction);
To copy to clipboard, switch view to plain text mode 

With this thing, don't work. How to do for change texte of one of this ?