Same thing. Both QTableView and QTreeView are subclasses of QAbstractItemView, which exposes indexAt().
Same thing. Both QTableView and QTreeView are subclasses of QAbstractItemView, which exposes indexAt().
Thanks a lot. I was looking for function named itemAt()![]()
The views are model based so you want the model index in this case. If it is valid the you clicked on an item.
Bookmarks