[PyQt] Fwd: Re: c++ app integrate PyQt

John Fabiani johnf at jfcomputer.com
Tue Oct 1 16:08:23 BST 2013


On 10/01/2013 08:00 AM, David Boddie wrote:
> On Tue Oct 1 15:16:58 BST 2013, John Fabiani wrote:
>
>> If you would forward an example to me it would very helpful.
> I'll try to dig something out. I sent a broken example to the mailing
> list a few days ago, but I'm sure I could put something else together.
>
>> I think
>> both of you are suggesting that I wrap the C++ (BTW a very large app)
>> and then write the entire program using PyQt. Is that correct.  You also
>> suggest you succeeded integrating PyQt into a C++ but were disappointed
>> with the results?  Could you explain beyond -you didn't like loading a
>> python interpreter.  What was the down side.  Load time seems very fast
>> with PythonQt.  I don't know what the load time of PyQt would be - but
>> if it was under 10 seconds - that would be ok.
> You don't have to wrap the entire API or rewrite the whole application.
> You just need to identify which classes need to be exposed to Python and
> wrap those.
>
> In terms of embedding Python into a C++ application (or framework), I was
> never very happy about whether or not I'd got the reference counting
> correct.
>
>> I may have to move to QML and javascript (a terrible language) - short
>> of wrapping everything and or rewriting the entire program.
> I'd advise against doing that unless there are strong reasons for using
> either of those languages.
>
>> BTW thanks guys for helping me.
> No problem. That's what the mailing list is for.
>
> David
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
I'm so sorry David - I must be dumber that normal today because I'm now 
confused.  I think I'll wait for the small example.  I at first I 
thought all I needed to do was wrap the login, and one class that the 
python side would need.  But then I read your posting and came away with 
the idea that I needed to make everything a 'lib'.

Johnf


More information about the PyQt mailing list