I am building a QGIS-Plugin retrieving time-series raster data from several sources, which is then supposed to be visualized (so far separately and manually) via the Temporal Controller widget, added in QGIS 3.14.
So far, I am opening the Temporal Controller on plugin startup via
for i in iface.mainWindow().findChildren(QtWidgets.QDockWidget):
if i.objectName() == 'Temporal Controller':
i.setVisible(True)
For user convenience, I am trying to add the Temporal Controller widget within my custom widget, which contains the other functions of my plugin. I.e. the Temporal Controller is simply supposed to be displayed as-is within my plugin's own UI.
Unfortunately, I have so far only worked using Qt Designer, and my experience building a UI from code is very limited. I have not found an example that this is possible.
Is it at all possible to import an existing widget into another widget?