No, it definitely won't work this way. Instead you should set the qml-originated graphics object as a child of QGraphicsWidget (you don't need to subclass it) and put that widget in a layout.