Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以在 qt 中的表单上获取选择矩形位置,如果可以,如何?
我的问题是从 QListView 中选择的 QModelIndex 获取 QPos。
谢谢!
如果要从aQModelIndex 到坐标,请使用QListView::rectForIndex.
QModelIndex
QListView::rectForIndex