'Set the corner (:class:`Qt.Corner`) where the size grip should
position itself.'

def setCorner(self, corner):

    if (corner not in [Qt.TopLeftCorner, Qt.TopRightCorner, Qt.BottomLeftCorner, Qt.BottomRightCorner]):
        raise ValueError('Qt.Corner    flag    expected')
    if (self.__corner != corner):
        self.__corner = corner
        self.__updatePos()
