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