Expression painter:currentpath() returns a Qt variant of class qt.QPainterPath representing the current path.