It works fine with QWidget::createWindowContainer on the QRhi viewport here : https://jeanmichael-gmail.tinytake.com/tt/NDc3MjgxOF8xNTA4MT...
top is your most classic QTreeView, bottom is the widget with content rendered through RHI (a preview of a shader effect)