Yes, I was planning to do this kind of thing. The QPainter is easy, but in QML there is no QWidget but a QQuickItem (QQuickPaintedItem here). Why is the QWidget needed? Also, how should these be passed to GR?
BTW, it may be best to discuss this in a github issue?