I started to work on this a bit the other day. I got this far with it, before I had to drop it, and work on something else. No idea whether ultimately it will work or not.
@staticmethod
def getWidget(name=None):
'''
Get Qt widget/s
args:
name='string' - optional name of widget (widget.objectName)
returns:
if name: corresponding <widget object>
else: return a dictionary of all widgets {widgetName:widget}
'''
widgets = {w.objectName():w for w in QtWidgets.QApplication.allWidgets()}
if name:
return widgets[name]
else:
return widgets
then I would add it to a pyside ui. Which in my case would be something like this:
self.stackedWidget.addWidget(self.getWidget('MainAttributeEditorLayout'))
But like I said, I haven't had time to fully hash this out. The attribute editor was showing up in my window though.