<div dir="ltr"><div>Hi Detlev</div><div><br></div><div>Thanks for the answer.<br></div><br><div>>>I am working on my PyQt-Qwt library and I do have problem
with a C++ function that has many type variations and I don't
>>know which one the Python program is calling.</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><blockquote type="cite"><div dir="ltr">
</div>
</blockquote>
Shouldn't the calling propgram determine, what it wants to do with
the called function? In the case below I would assume, that the
setSamples() method expects a 'length' parameter. I haven't worked
with Qwt for ages, so I am not able to help. <br></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">File
"scatterplot.py", line 75, in setSamples
</span><br>
self.d_curve.setSamples( samples )
<br>
TypeError: index 0 has type 'QPointF' but 'int' is expected<br>
<br>
</span></div>
<div><span style="font-family:monospace"><font face="arial,sans-serif">It worked for Qwt 6.1.6 and I
don't see any difference up to Qwt 6.2.0 which is the
current version.</font></span></div>
<div><span style="font-family:monospace"><font face="arial,sans-serif"><br>
</font></span></div>
<div><span style="font-family:monospace"><font face="arial,sans-serif">The only way to solve this is to
debug the python program into the Qwt.so library but I
don't know how to do it. The</font></span></div>
<div><span style="font-family:monospace"><font face="arial,sans-serif">"Trace into interpreter libraries"
doesn't help.</font></span></div>
</div>
</blockquote>
<p><font face="arial,sans-serif">No, that won't help. It simply
means to trace into the Python files of the standard library of
the interpreter used. The eric debugger cannot trace into .so
libraries. It only deals with Python, MicroPython and Cython
files.</font></p></div></blockquote><div> The problem is solved. The python program did call an incorrect definition of the overloaded function. Debugging with gdb and setting a breakpoint at setSamples did not help because the program didn't stop there. <br></div><div>After having removed the the setSamples definition with integer in its definition, the program works nicely.</div><div>But I am still interested in being able to know what definition of an overloaded function is called from python but I don't know how to do it.</div><div>How does the TypeError above occur since gdb doesn't break at the function called and the eric debugger doesn't show how it occurs either?<br></div><div><br></div><div>Regards</div><div>Gudjon</div><div><br></div><div><br></div><div><br></div></div></div>