QDialog: Forbidden Cursor appears when Question Mark (?) Pressed
问题 I am trying to get the 'WhatsThis' functionality working in a QDialog-based application, so when the user clicks the little question mark in the Title Bar, a little 'about' dialog appears. By default, clicking that button does nothing except change my mouse cursor to the 'Forbidden' cursor: Based on a previous post, I reimplemented event as follows: def event(self, event): if event.type() == QtCore.QEvent.EnterWhatsThisMode: print "Here is a useful message" return True return QtGui.QDialog