Should be trivial to create these as custom QDeclarativeItems
Ah, ok, very hacky.
If you use a QDeclarativeView instead then you can use the same approach when moving to a QQuickWidget.
Well, that's not possible since Qt5 QQuickItems are not QGraphicsItems.
QtQuick is rendered with an OpenGL based scene graph.
As far as I understood your setup you have these options:
1) Remove the usage of QML
2) Keep using QGraphicsView and just use QQmlEngine with custom types to create QGraphicItem based objects in QML
3) Move the Qt4 version to use QDeclarativeView and custom QDeclarativeItem and then port that almost unchanged to QtQuickWidget and custom QQuickPaintedItems.
Cheers,
_
Bookmarks