Hi, all.
I subclass QTableView and reimplement
QTableView::mouseReleaseEvent(QEvent *event)
To copy to clipboard, switch view to plain text mode
, in which i get
QTableView::currentIndex()
To copy to clipboard, switch view to plain text mode
and the event pos by
event->pos()
event->pos()
To copy to clipboard, switch view to plain text mode
before this i've set some items checkable so there is a checkbox in the responding positions.
Now, i'm wondering how can i get the checkbox's geometry, rect or size? which is devided from the item's other part. as in the attachment, i want to know the red rectangle's rect or just size.
By now i can get the whole item's rect through it's index and the style of this view. by the way, the view's indicator's appearence is set by a stylesheet.
thank you.
Bookmarks