'Set the preferred direction (QPointF) in item coordinates.'

def setAnchorDirection(self, direction):

    if (self.__direction != direction):
        self.__direction = direction
        self.anchorDirectionChanged.emit(direction)
