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