Unfortunately it is the protected, non virtual method. I solved it. Just has reimplemented the sizeHint() method at delegate. Thanks nonetheless.Originally Posted by Chicken Blood Machine
Unfortunately it is the protected, non virtual method. I solved it. Just has reimplemented the sizeHint() method at delegate. Thanks nonetheless.Originally Posted by Chicken Blood Machine
Ah yes, it is non-virtual. I didn't notice that.Originally Posted by Mad Max
Save yourself some pain. Learn C++ before learning Qt.
The height of the result of this QTreeWidget method, called with a given QTreeWidgetItem, does the trick (for QTreeWidget — this isn’t usable for QTreeView, of course):
QRect QTreeWidget::visualItemRect (const QTreeWidgetItem* item) const;
Bookmarks