I have an application utilizing QWinWidget
in a Win32 window. I'd like to add DockWidgets and the associated behaviour to it. There don't seem to be any exposed APIs for adding custom DockAreas
, and the latest docs are sparse beyond adding DockWidgets
to a QMainWindow
. Older docs imply there once was a public QDockArea
class.
So far, my best option appears to be adding a neutered QMainWindow (no top-level status, no frame, etc.) to the QWinWidget and going from there (second source).
I was hoping there was a way to add DockAreas to any container, but it doesn't appear that way. As a side note, QWinWidget
is used to have window manager control with our custom frame requirement, but if there's a pure QMainWindow
/QWidget
way to have the same result (with Qt::FramelessWindowHint
), I'd be happy to switch over.