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.
我有更多的 QGraphicsItems 在彼此之上。如何使悬停事件可用于所有项目?只有最后添加的项目(顶部的项目)接受悬停事件。
谢谢
你可以模拟这些事件,你“只是”必须:
mouseMoveEvent
QGraphicsView
QGraphicsScene
QGraphicsView::items(QPointF)
QGraphicsScene::sendEvent