How to make shapes created by QPainter visible permanently?

This looks very similar to the plugin I have requested