Text selection in model-view implementation
Unsolved
Qt for Python
-
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?