Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
QDockWidget exists only for QMainWindow? Can't I attach QDockWidget into another widget?
QDockWidget is a standard (inherits) QWidget so you can put it anywhere in a Qt widgets tree, however the docking functionalities will only work if it has a QMainWindow as its parent.