Unsolved Text selection in model-view implementation
-
Hi, I want to ask if is possible (and how if possible) to make QTreeView's item's text selectable by mouse like when:
label = QLabel("Selectable text") label.setTextInteractionFlags(Qt.TextSelectableByMouse)
I'm using customized
QTreeView
,QAbstractListModel
andQStyledItemDelegate
.
Delegate is paintingQTextDocument
.Not sure if these information are enough.
Can anyone help me please?
-
I want to be able to do this kind of selection:
- select text from item and be able to copy selection with shortcut. Like
QLabel
when you set interaction flagTextSelectableByMouse
- select text from item and be able to copy selection with shortcut. Like
-
I describe it incomprehensibly or it's not possible?