Expression painter:setpen(qpen) sets the current pen. Argument qpen must be a Qt variant of type qt.QPen.
painter:setpen(qpen)
qpen
qt.QPen