[Baypiggies] Is it problematic to embed python in a Qt C++ app?
Shannon -jj Behrens
jjinux at gmail.com
Tue Jan 16 20:27:55 CET 2007
On 1/14/07, craig harris <craigwharris at comcast.net> wrote:
> HI all,
> I have a C++ Qt based app and am creating a text API for its functions. It
> would work as follows: A Qt command console would allow users to type in
> text. Then that text would be parsed by python. The python would wrap C++
> functions and execute them.
> Before I try to do this, I was wondering if anyone had advice 'against' or
> 'for' this approach? Is it problematic?
> I guesss another way of asking: can you simaltaneously embed python in C++
> and C++ in python?
I bet it will be fine. Just remember to only update the GUI from one
thread (this is still required in QT, right?).
If I were a real C++ coder, I'd say something useful about Boost
permitting interoperability between C++ and Python, but I'm not a real
C++ coder ;)
More information about the Baypiggies