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

List:       pykde
Subject:    Re: [PyQt] Strange abort with function inside custom type
From:       Cody Scott <cody () perspexis ! com>
Date:       2018-12-18 20:42:21
Message-ID: CAN04N8ab+e4CjnugUDmC0rJ_b=3MO_3kUNYYzt-FifeeA8HPZw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


This works again in PyQt5==5.11.3 on Windows 10 with Python 3.7.0 64-bit.

On Wed, 22 Mar 2017 at 17:18, Phil Thompson <phil@riverbankcomputing.com>
wrote:

> On 22 Mar 2017, at 1:01 pm, Cody Scott <cody@perspexis.com> wrote:
> >
> > FWIW this was working in PyQt<5.8
> >
> > The function is only used in QML.
>
> The bug is caused by the fix for another bug you reported (related to
> properties) which itself was caused by changes in Qt v5.8.0.
>
> I think it is more important that properties work than the ability to
> define JavaScript functions.
>
> Phil
>
> > On Tue, Mar 21, 2017 at 7:21 PM, Phil Thompson <
> phil@riverbankcomputing.com> wrote:
> > On 21 Mar 2017, at 3:42 pm, Cody Scott <cody@perspexis.com> wrote:
> > >
> > > I have a custom type and if there is a function created inside the
> custom type there is a SIGSEGV
> > >
> > > https://gist.github.com/Siecje/ae3f033daca3cfb52d8060dde2a08b91
> > >
> > > This is using PyQt5==5.8.1.1
> >
> > This is a bug but I don't think it is fixable. Trying to integrate QML
> with (dynamic) Python is never going to work as well as with (static) C++.
> PyQt does it's best to fool QML into thinking it is talking to C++ but I
> think this is a step too far. The QML implementation just keeps too much
> information under the covers.
> >
> > Generally I'd recommend keeping the QML to a minimum - just use it to
> implement the view and implement all model and controller code in Python.
> >
> > Phil
> >
>
>

[Attachment #5 (text/html)]

<div dir="ltr"><div dir="ltr">This works again in PyQt5==5.11.3 on Windows 10 with \
Python 3.7.0 64-bit.<br></div></div><br><div class="gmail_quote"><div dir="ltr">On \
Wed, 22 Mar 2017 at 17:18, Phil Thompson &lt;<a \
href="mailto:phil@riverbankcomputing.com" \
target="_blank">phil@riverbankcomputing.com</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">On 22 Mar 2017, at 1:01 pm, Cody Scott &lt;<a \
href="mailto:cody@perspexis.com" target="_blank">cody@perspexis.com</a>&gt; \
wrote:<br> &gt; <br>
&gt; FWIW this was working in PyQt&lt;5.8<br>
&gt; <br>
&gt; The function is only used in QML.<br>
<br>
The bug is caused by the fix for another bug you reported (related to properties) \
which itself was caused by changes in Qt v5.8.0.<br> <br>
I think it is more important that properties work than the ability to define \
JavaScript functions.<br> <br>
Phil<br>
<br>
&gt; On Tue, Mar 21, 2017 at 7:21 PM, Phil Thompson &lt;<a \
href="mailto:phil@riverbankcomputing.com" \
target="_blank">phil@riverbankcomputing.com</a>&gt; wrote:<br> &gt; On 21 Mar 2017, \
at 3:42 pm, Cody Scott &lt;<a href="mailto:cody@perspexis.com" \
target="_blank">cody@perspexis.com</a>&gt; wrote:<br> &gt; &gt;<br>
&gt; &gt; I have a custom type and if there is a function created inside the custom \
type there is a SIGSEGV<br> &gt; &gt;<br>
&gt; &gt; <a href="https://gist.github.com/Siecje/ae3f033daca3cfb52d8060dde2a08b91" \
rel="noreferrer" target="_blank">https://gist.github.com/Siecje/ae3f033daca3cfb52d8060dde2a08b91</a><br>
 &gt; &gt;<br>
&gt; &gt; This is using PyQt5==5.8.1.1<br>
&gt; <br>
&gt; This is a bug but I don&#39;t think it is fixable. Trying to integrate QML with \
(dynamic) Python is never going to work as well as with (static) C++. PyQt does \
it&#39;s best to fool QML into thinking it is talking to C++ but I think this is a \
step too far. The QML implementation just keeps too much information under the \
covers.<br> &gt; <br>
&gt; Generally I&#39;d recommend keeping the QML to a minimum - just use it to \
implement the view and implement all model and controller code in Python.<br> &gt; \
<br> &gt; Phil<br>
&gt; <br>
<br>
</blockquote></div>


[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