Your best bet is probably QPainterPathStroker
. Use it to create a new path that's the outline of your path. Then use QPainterPath operations like intersection or subtraction between the two:
outsidePath = strokedPath.subtracted(originalPath);
insidePath = strokedPath.intersected(originalPath);