title: Qt/PySide/PyQt - custom tooltip not transparent for mouse events
body: <p>There are some limitations of QToolTip.showText/hideText as well as QWidget.setToolTip() which make it inconvenient for my needs. So I want to implement my own class that would behave similar as tooltips. I am using QLabel, set the windws flags and attributes and everything works fine except that it is not transparent for mouse events. </p>
  
  <p>When creating a widget that should have this custom tooltip, I use the following code snippet:</p>
  
  <pre><code>toolTipWidget = QtGui.QLabel()
  toolTipWidget.setFrameShape(QtGui.QFrame.StyledPanel)
  toolTipWidget.setWindowFlags(QtCore.Qt.ToolTip)
  toolTipWidget.setAttribute(QtCore.Qt.WA_TransparentForMouseEvents)
  toolTipWidget.hide()
  self.toolTipWidget = toolTipWidget
  </code></pre>
  
  <p>in <code>mouseMoveEvent</code> of the widget I have the following:</p>
  
  <pre><code>def mouseMoveEvent(self, event):
      text = self.getDescription(event.pos())  # some method which returns a string
      if text:
          self.toolTipWidget.setText(text)
          self.toolTipWidget.move(event.globalPos() + QtCore.QPoint(5, 5))
          self.toolTipWidget.adjustSize()
          self.toolTipWidget.show()
      else:
          self.toolTipWidget.hide()
  </code></pre>
  
  <p>As you see in the code, the tool tip moves with the mouse. But sometimes it may happen that mouse cursor moves fast enough to enter the area of the tool tip and then the tool tip takes over the mouse events, which means that the mouseMoveEvent of the main widget is not called and the tool tip stops moving and gets stuck. This is strange because I set the attribute <code>WA_TransparentForMouseEvents</code>. Does anyone know how to solve this issue?</p>