Subclassing QLabel to show native 'Mouse Hover Button indicator'
问题 I have a QLabel with a 'StyledPanel, raised' frame. It is clickable, by subclassing QLabel; class InteractiveLabel(QtGui.QLabel): def __init__(self, parent): QtGui.QLabel.__init__(self, parent) def mouseReleaseEvent(self, event): self.emit(QtCore.SIGNAL('clicked()')) However, a general opinion is that this 'Box' is not easily recognised as clickable. In an effort toward usability, I'd like the 'Box' to show it is clickable when the mouse is hovered over it. Obviously a reaction to a mouse