The problem lies in not being able to nest QMainWindows (assuming I'm not wrong about that). What I have is a mainwindow with different perspectives, switched via checkable toolbar buttons. The perspective change only alters everything below the toolbar, essentially loading almost an entire new part of the software. As a result, it's as if each of these perspectives is its own MainWindow, without its own toolbars. But since I can't just place a MainWindow within another, I use a QFrame.
This problem at hand is actually a bit more complicated, since I want my DockableWidget to reside in another QFrame nested in the one I spoke of above. Essentially, I have something resembling the following:
Everything below the toolbar is within a QFrame. And the right side of the treeview is actually another QFrame. As you can see, in that frame is where I want the QDockWidget to be.
Bookmarks