Hello,

I've been trying to add a second main window with docking functionality to my application, but I can't figure out how to do it.

This is what I'm trying to achieve:

The application starts with a QMainWindow with multiple widgets docked in the main window.

00.jpg

I can drag a widget outside of the main window and it gets docked to what looks like a newly created second QMainWindow.

01.jpg

I can drag any other widget from the first QMainWindow and dock it into the second QMainWindow.

02.jpg

(These images are from Natron, a Qt4 open source compositing application)

I've tried this using two QMainWindow instances, but I can't dock from the first to the second window.

Any tips or suggestions.

Thank you!