[PyQt] Undefined error with Drag & Drop

Hans Jörg Maurer hjm at pmeonline.net
Fri Jan 26 07:09:28 GMT 2018


Hi Michael,

there is no trace back. I got only exit code 3. This normaly ocurres
if there's a programm failure. But in this case D&D works in most
case. At least if I move over a root node, a crash happens. Could it
be that it's  unpossible to D&D items with dictionary in Qt.UserRole?

In most cases I got the following last messages (which are created by
print commands):

-> MaDaMain.eventFilter
   EventFilter Type         : QEvent.DragMove:A drag and
drop operation is in progress (QDragMoveEvent).
   -> source == self.treeViewStructure.viewport()
ZMQ_EVENT_CONNECT_DELAYED
ZMQ_EVENT_CONNECTED
-> treeViewStructure_eventFilter type:  61
   ->event.type() == QtCore.QEvent.DragMove
   index: 2
   Data: {'col1': {'dbID': 1641, 'level': 0, 'long_name': '  DE 2',
'origin_source': "{'LocationID':11,'LocationName':'S1 DE
2','LocationOrder':9}", 'origin_table': 'bla', 'parent_ID': 34, 'pos':
101, 'short_name': '  DE 2', 'sort_order': 4}, 'col2': '', 'col3':
'', 'col4': '', 'col5': '', 'col6': ''}
   pos: PyQt5.QtCore.QPoint(44, 40)
ZMQ_EVENT_CONNECT_DELAYED
ZMQ_EVENT_CONNECTED
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180126/3c1224d2/attachment.html>


More information about the PyQt mailing list