I have a QDockWidget that I have subclassed with a custom titlebar and was wondering why that when the DockWidget is docked to the QMainWindow the titlebar's parent is that of the QMainWindow instead of the DockWidget like it normally is when it is undocked.

Has anyone ever run into this before? I even tried to revert back to DockWidget without a custom titlebar, but the results are still the same.

Thanks,

Kevin