I have a layout which I add dockwidgets to using:
addDockWidget(Qt::RightDockWidgetArea, dialog);
this adds a dialog to the right, then if I call