Quoting the upstream response:
http://www.riverbankcomputing.com/pipermail/pyqt/2014-March/033989.html
It's not a bug - you just can't do what you want to. Qt uses an internal
class as the layout for a QDockWidget. It assumes (and doesn't check)
that its layout is a valid instance of that class.
To use the reproducer script, uncomment one of the strategies and run
the script like 'python test.py'.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1298767
Title:
Cannot remove a layout on a QDock