Mouseover event filter for a PyQT Label

后端 未结 3 560
误落风尘
误落风尘 2020-12-20 22:01

I\'ve been trying to convert the example here to work with a simple label.

Here\'s the code:

class mouseoverEvent(QtCore.QObject):
    def __init__(sel         


        
3条回答
  •  心在旅途
    2020-12-20 22:09

    I believe you need to return True or False from the eventFilter, to indicate whether you have handled the event completely or not.

提交回复
热议问题