[Qt-interest] Dragging QDockWidget between multiple windows in Qt4

John Cummings jcummings2 at users.sf.net
Wed Aug 12 17:27:03 CEST 2009


> > So, is it possible to drag and drop dock widgets between main
windows? In
> > other words, can a QDockWidget object be easily docked to different
> > QMainWindow objects (only one at a time of course)?

> Dear John:
>
> It does not look like you are getting much help from the
> mailing list (unless I missed a posting).
>
> I have also wanted to do this, but have not gotten
> around to giving it a serious try yet.
> 
> If you figure out how to do this, please post to
> the list so I/we can all benefit.
> 
> Thanks
> 
> Bill


(I received the message above directly instead of via the list).

Thank you Bill, at least I know that I am not the only one wanting to drag a dock widget between main windows.

As such, I have attached a short example demonstrating more fully what I said in my previous email. I believe it will give us a better starting point for discussing solutions. For reference, I am developing with Qt 4.4 but I did not see anything in Qt 4.5 that addresses this issue.

So, has anyone else actually managed to dock a widget in multiple main windows?

John Cummings

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dock.cpp
Type: text/x-c++src
Size: 1193 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090812/115ab612/attachment.bin 


More information about the Qt-interest-old mailing list