'Reimplemented to connect signal handlers and event filter.'

def showEvent(self, event):

    super(CallTipWidget, self).showEvent(event)
    self._text_edit.cursorPositionChanged.connect(self._cursor_position_changed)
    self._text_edit.installEventFilter(self)
