Re: Is a Delegate a Widget?
That's the whole point behind view and delegates: there aren't widgets... What happens if you use the pointer to the view with a proper position?
Re: Is a Delegate a Widget?
well, I still need a widget to call the qtest::mouseClick. I can still use the whole table view as the widget, and I noticed there is an optional QPoint parameter
If I am not mistaken, the X and Y of QPoint are pixels, not cell offsets, right?
I need the opposite of indexAt(), I am thinking in combining rowViewportPosition() and columnViewPortPosition() to translate the cell coordinates to the qPoint I need.
Is that the best way to emulate that right-click with qtest:mouseclick for a table view ???
Re: Is a Delegate a Widget?
Quote:
Originally Posted by
frank100
I need the opposite of indexAt(), I am thinking in combining rowViewportPosition() and columnViewPortPosition() to translate the cell coordinates to the qPoint I need.
QAbstractItemView::visualRect() as mentioned in QAbstractItemView::indexAt()