PDA

View Full Version : QDockWidget drag/drop preview



harregui
23rd February 2011, 16:30
Hi all,

Maybe I'm missing some important step, but I'd like to disable the preview of final docked position when drag/dropping a QDockWidget.
If I'm not wrong, I have to setAnimated(false) at QMainWindow.
http://doc.qt.nokia.com/latest/qt4-mainwindow.html#new-functionality
But it seems not working. Do I need anything else?

Thanks a lot.

Added after 36 minutes:

Well, my fault.
I've just noticed the difference between animation enabled/disabled. I thought setting animation off would avoid painting the target location.
I should implement my own DragMoveEvent handler, shouldn't I?