How shall I get a QTreeWidgetItem LeftTop position (in pixel) after I get this item with the itemAt?
Is there a simple way?
How shall I get a QTreeWidgetItem LeftTop position (in pixel) after I get this item with the itemAt?
Is there a simple way?
If you have a QTreeWidgetItem *
pitem
you can use QTreeWidget::visualitemRect
...
QRect viewport_relative_rect = pitem->treeWidget()->visualItemRect(pitem);