Solved How to select only part of a text of QGraphicTextItem
-
I can make a QGraphicsTextItem selectable by using
setTextInteractionFlags(QtGui.Qt.TextSelectableByMouse)
which allows me also to copy the selected text.However, with this method I am only able to select the entire text if the item. But I would like to be able to select just a part of it (via a cursor maybe, but this is not absolutely necessary) and then copy the selected part.
I there a solution for this already available?
-
I did not propagate the
mousePressEvent
.See here: https://forum.qt.io/topic/120951/ideal-way-to-show-markable-text-in-qgraphicsscene/4
-
This is still unsolved :( Is QGraphicsTextItem even the right item for this application?
-
I did not propagate the
mousePressEvent
.See here: https://forum.qt.io/topic/120951/ideal-way-to-show-markable-text-in-qgraphicsscene/4