I spoke too soon... I unchecked "docked" in Designer, and checked it again, and now the QDockWidget is again stuck with dockWidgetArea = LeftDockWidgetArea even though allowedAreas = RightDockWidgetArea.