Text selection in model-view implementation
-
wrote on 22 Aug 2019, 17:39 last edited by
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?
-
wrote on 23 Aug 2019, 07:53 last edited by
-
wrote on 30 Aug 2019, 08:15 last edited by
I describe it incomprehensibly or it's not possible?