[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Undefined error with Drag & Drop
From:       Hans =?UTF-8?Q?J=C3=B6rg?= Maurer <hjm () pmeonline ! net>
Date:       2018-01-26 15:43:56
Message-ID: 5ef47a52dde634f625569dc22a900f82 () pmeoffice ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I found the source for the fault. It was at the flag function for
the tree model. But I have no idea why, there's no programming fault.

Nethertheless, thanks for your support
Hans





Am Freitag, den 26.01.2018 um 08:09 schrieb Hans Jörg Maurer:


 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
    

[Attachment #5 (text/html)]

<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>I found the source for the fault. It was at the flag function for the tree \
model. But I have no idea why, there's no programming fault.<br><br>Nethertheless, \
thanks for your support<br>Hans<br><br><br><br>

<br><br>Am Freitag, den 26.01.2018 um 08:09 schrieb Hans Jörg Maurer:<br><blockquote \
style="border:0;border-left: 2px solid #22437f; padding:0px; margin:0px; \
padding-left:5px; margin-left: 5px; "> 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&amp;D works in most case. At least if I move over a root node, a crash \
happens. Could it be that it's&nbsp; unpossible to D&amp;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>-&gt; MaDaMain.eventFilter<br>&nbsp;&nbsp; \
EventFilter Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : QEvent.DragMove:A \
drag and drop operation is in progress (QDragMoveEvent).<br>&nbsp;&nbsp; -&gt; source \
== self.treeViewStructure.viewport()<br>ZMQ_EVENT_CONNECT_DELAYED<br>ZMQ_EVENT_CONNECTED<br>-&gt; \
treeViewStructure_eventFilter type:&nbsp; 61<br>&nbsp;&nbsp; -&gt;event.type() == \
QtCore.QEvent.DragMove<br>&nbsp;&nbsp; index: 2<br>&nbsp;&nbsp; Data: {'col1': \
{'dbID': 1641, 'level': 0, 'long_name': '&nbsp; DE 2', 'origin_source': \
"{'LocationID':11,'LocationName':'S1 DE 2','LocationOrder':9}", 'origin_table': \
'bla', 'parent_ID': 34, 'pos': 101, 'short_name': '&nbsp; DE 2', 'sort_order': 4}, \
'col2': '', 'col3': '', 'col4': '', 'col5': '', 'col6': ''}<br>&nbsp;&nbsp; pos: \
PyQt5.QtCore.QPoint(44, \
40)<br>ZMQ_EVENT_CONNECT_DELAYED<br>ZMQ_EVENT_CONNECTED<br>&nbsp;&nbsp; \
&lt;-event.type() == QtCore.QEvent.DragMove<br>&lt;- Ende \
treeViewStructure_eventFilter<br>&lt;- 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">&lt;<a href="mailto:hjm@pmeonline.net" \
target="_blank">hjm@pmeonline.net</a>&gt;</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  &amp; 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 &amp; 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&nbsp;</div></div></div></div> </blockquote>
</blockquote></body></html>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic