<html>
<head>
<style type="text/css">
body,p,td,div,span{
        font-size:13px; font-family:Arial, Helvetica, sans-serif;
};
body p{
        margin:0px;
}
</style>
</head>
<body>Hi Michael,<br><br>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?<br><br>In most cases I got the following last messages (which are created by print commands):<br><br>-> MaDaMain.eventFilter<br>   EventFilter Type         : QEvent.DragMove:A drag and drop operation is in progress (QDragMoveEvent).<br>   -> source == self.treeViewStructure.viewport()<br>ZMQ_EVENT_CONNECT_DELAYED<br>ZMQ_EVENT_CONNECTED<br>-> treeViewStructure_eventFilter type:  61<br>   ->event.type() == QtCore.QEvent.DragMove<br>   index: 2<br>   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': ''}<br>   pos: PyQt5.QtCore.QPoint(44, 40)<br>ZMQ_EVENT_CONNECT_DELAYED<br>ZMQ_EVENT_CONNECTED<br>   <-event.type() == QtCore.QEvent.DragMove<br><- Ende treeViewStructure_eventFilter<br><- MaDaMain.eventFilter<br><br>Another information may be from the debugger:<br><br>PYQT_CONFIGURATION = {dict}{'sip_flags': '-t WS_WIN -t Qt_5_8_0'}<br>'sip_flags' (61803360)={str}'-t WS_WIN -t Qt_5_8_0'<br>__len__=1<br>PYQT_VERSION=329729<br>PYQT_VERSION_STR='5.8.1'<br><br><br>Am Freitag, den 26.01.2018 um 01:41 schrieb michael h:<br><blockquote style="border:0;border-left: 2px solid #22437f; padding:0px; margin:0px; padding-left:5px; margin-left: 5px; "><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 25, 2018 at 2:21 PM, Hans Jörg Maurer <span dir="ltr"><<a href="mailto:hjm@pmeonline.net" target="_blank">hjm@pmeonline.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div>Dear Scott,<br><br>thanks for your answer.<br><br>I have no idea where I should search. <br><br>I've
 added some print commands to get an idea whats leading to the mentioned
 fault. It seems that the eventFilter is the main call during a drag 
& drop. I'm sorry, but I do pyqt since just a half a year and I am 
still python beginner. So it its stupid, please tell me.<br>The following calls lead to the crash during drag & drop inside a QTreeView. It's a log from the Run Window:<br><br><br></div></blockquote><div><br></div>Hans,<div><br></div><div>Do you have an actual trace back from the exception?</div><div><br></div><div>- m </div></div></div></div>
</blockquote></body></html>