'Clear the selection when a mouse click hits no item'

def mousePressEvent(self, event):

    widget = self.widget
    clicked_item = widget.itemAt(event.pos())
    if (clicked_item is None):
        widget.clearSelection()
    return self.Base.mousePressEvent(widget, event)
