Moving dataset in the database-browser view does not work
Mantis Issue 935, reported by salbert, assigned to salbert, created: 2014-05-07
Moving dataset in the database-browser view does not work on Windows 7 AMD64 build linked to Qt 4.8.5 (from OSGeoW).
2014-05-13 09:31 - grizonnetm: not reproduced on Windows XP 32b with the nightly installer
2014-06-02 15:15 - mickael: reproduced today with win64 version and it still didn't work. Ok with win32 one and dora
2014-08-20 16:19 - salbert: See e-mail sent August 20th, 2014 on otb-developers.
Reproduced only under Win7-vc10-amd64-RelWithDebInfo-Static with QT 4.8.5.
Drag-and-drop of QTreeWidgetItem is disabled from DatabaseBrowser view (QTreeWidget) only on this target platform.
Debugging showed the QTreeWidgetItem::startDrag() is called by the Qt engine but does not enter the block drag-n-drop loop as intended if it had successfully called QDrap::exec(). There is no apparent reason why.
Breakpoint could be set in mvd::TreeWidget::startDrag() function (http://hg.orfeo-toolbox.org/Monteverdi2/file/7babf0517fe6/Code/Common/Gui/mvdTreeWidget.cxx#l357) overladed for debug purposes. Deep testing has been done to discriminate a perimeter without success :
- Massive qDebug() traces added in source code
- Disabled external drop event-filter
- Disabled specific MIME data encoding by overloading QTreeWidget::mimeTypes(), ::mimeData() and stream operators
- Disabled QTreeWidgetItem -derived custom class
- Disabled recording of Qt meta-type for QTreeWidgetItem pointers and their encoding as pointer adresse in MIME data
- Disabled inhibitting of drag when moving mouse cursor over an empty QTreeWidget area
- Disabled promoting QTreeWidget in mvd::TreeWidget via .UI file
- Checked mvd::TreeWidgetItem : public QTreeWidgetItem cloning method
- Disabled overladed of QTreeWidget drag events and drop events.
This bug is always reproduced.
Following same methodology, gradually implemented and Qt example with above functionalities copy-pasted from Monteverdi2 source dode for step by step testing.
This bug is never reproduced.