I'm using standard QTreeView and QTableView. I'd like the row height in both view types to be the same, but default heights are different and QTableView's row height is significantly larger than QTreeView's row height. What would be the correct way to make the heights the same?
P.S. I use the same item delegate, sub-classed from QItemDelegate, in both view types. I tried to override QItemDelegate::sizeHint() and what I see is QItemDelegate::sizeHint() is called by QTreeView but is not called by QTableView. Could this be related to my row height problem?
Bookmarks