Hello,
For my application I would like to have QGraphicsTextItem that only allows plain text to be inserted (pasted or dropped). Could anyone suggest a way of doing this?
The insertFromMimeData method of QTextEdit would be ideal. I have had a look at the source, but I can't figure out how to implement that something in a subclass of QGraphicsTextItem.
The dropEvent and inputMethodEvent methods of QGraphicsTextItem don't seem to allow me to do this either, though it's entirely possible I'm not using them the right way.
Thanks for any thoughts,
Adam
Bookmarks