Search code examples
c++linuxqtqwidgetqlistview

Qt Selection Rect Position


Can I get Selection rectangle position on my form in qt, if yes, how?

My problem is to get QPos from selected QModelIndex in QListView.

Thank you!


Solution

  • If you want to go from a QModelIndex to coordinates, use QListView::rectForIndex.