Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
在我自己重载的scene和view中,自定义了一个item,继承于QGraphicsItem,当我在scene中重载mousePressEvent事件后,遍历鼠标点击位置的所有item,找不到我这个自定义的item,但是我在这个scene的items里能找到这个自定义的item,目前检查了:1.这个自定义的item的Z值是最大的,大于其他的item;2.这个自定义项的大小正常,可以被鼠标点击到;3.这个自定义的item的位置在我鼠标点击的位置下;4.自定义item的鼠标事件开启;5.其他的自定义item正常