<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>I was thinking this, but needed confirmation. Thanks.</div><div><br></div> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Matt Newell <newellm@blur.com><br> <b><span style="font-weight: bold;">To:</span></b> pyqt@riverbankcomputing.com; Kenneth Miller <kennethadammiller@yahoo.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, August 28, 2013 4:54 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [PyQt] Using SWIG to wrap application written in QT<br> </font> </div> <div class="y_msg_container"><br>On Wednesday, August 28, 2013
01:01:43 PM Kenneth Miller wrote:<br>> ping. :)<br>> <br>> <br>> ________________________________<br>> From: Kenneth Miller <<a ymailto="mailto:kennethadammiller@yahoo.com" href="mailto:kennethadammiller@yahoo.com">kennethadammiller@yahoo.com</a>><br>> To: "<a ymailto="mailto:pyqt@riverbankcomputing.com" href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a>" <<a ymailto="mailto:pyqt@riverbankcomputing.com" href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a>><br>> Sent: Monday, August 26, 2013 5:25 PM<br>> Subject: Using SWIG to wrap application written in QT<br>> <br>> <br>> <br>> So I have this application that I'm writing that uses the Qt libraries. I<br>> want to wrap the my application and all of it's objects so that I can call<br>> it from a scripting language quickly, be it python, or ocaml or whatever.<br>> Anyway, for the last bit I've been
trying to get a module compiled that<br>> will allow me to dynamically call into the classes & functions that I've<br>> defined. SWIG seems to work right, and recently I even got my own self<br>> defined class within a module from my C++ source to run, although it<br>> segfaulted and I have yet to find out exactly why. <br>> <br>> <br>> <br>> Can this be done? I mean, I was wondering it would be more appropriate that<br>> I use SIP. One of the problems that I'm facing (I think) is that some<br>> arguments to my classes and functions are Qt objects. But I can't export<br>> those functions in my SWIG module without also writing a wrapper to the Qt<br>> objects manually (is that right?). I'm very new to SWIG, but I definitely<br>> need the speed of a scripting language for my development, because the<br>> compile cycle with Qt and C++ is slow. In addition, I'm kind of<br>> considering SIP in parallel, so I
need advice as to which is more<br>> appropriate. <br>> <br>> Can anybody advise me what the best route is in order to get what I want?<br>> SIP or SWIG?<br><br><br>You'll definitely want to use sip. PyQt sources(check the sip dir) themselves <br>are a good reference on how to do things.<br><br>Matt<br><br><br></div> </div> </div> </div></body></html>