Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Splitter between items in QTreeView
I want to resize an items height in a QTreeView separately for each item. Is there an easy way to make splitters between each items in a QTreeView?
No, you have to do it on your own - maybe by subclassing QTreeView but I don't think it's that easy...
Thank you. It's sad.
Can you explain your use case in more details ?
Would resizing rows be enough ?
VRonin last edited by
Yeah, I think OP wants to do what
QHeaderView::setResizeMode(QHeaderView::Interactive)does but on rows of a treeview
@SGaist Would resizing rows be enough ?
Yes it will de enough.
Now I try to use a QTreeWidget and itemAt to define an item under a mouse cursor. Also I try to redefine mouseMoveEvent in a QTreeWidgetItem but still have not reach a success. Can't write a right constructors fo MyTreeWidgetItem. I will be grateful for any advice
@flammmable The QTreeWidgetItem have not a mouseMoveEvent. Hmm...
Because items have no visual representation, that's done by the delegate.
If you want to go that way, you have to re-implement the mouseXXXEvents of your QTreeWidget.