<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>ping. :)</span></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> Kenneth Miller <kennethadammiller@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> "pyqt@riverbankcomputing.com" <pyqt@riverbankcomputing.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, August 26, 2013 5:25 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Using SWIG to wrap application written in QT<br> </font> </div> <div class="y_msg_container"><br><div id="yiv9298834353"><div><div style="color: rgb(0, 0, 0); background-color:
rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div><span style="font-size:12pt;">So I have this application that I'm writing that uses the Qt libraries. I want to wrap the my application and all of it's objects so that I can call it from a scripting language quickly, be it python, or ocaml or whatever. Anyway, for the last bit I've been trying to get a module compiled that will allow me to dynamically call into the classes & functions that I've defined. SWIG seems to work right, and recently I even got my own self defined class within a module from my C++ source to run, although it segfaulted and I have yet to find out exactly why. </span><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 class="yiv9298834353y_msg_container"><div id="yiv9298834353"><div
style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">Can this be done? I mean, I was wondering it would be more appropriate that I use SIP. One of the problems that I'm facing (I think) is that some arguments to my classes and functions are Qt objects. But I can't export those functions in my SWIG module without also writing a wrapper to the Qt objects manually (is that right?). I'm very new to SWIG, but I definitely need the speed of a scripting language for my development, because the compile cycle with Qt and C++ is slow. In addition, I'm kind of considering SIP in parallel, so I need advice as to which is more appropriate. </div><div style="color: rgb(0, 0, 0); font-size: 16px;
font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">Can anybody advise me what the best route is in order to get what I want? SIP or SWIG?</div></div></div><br><br></div> </div> </div> </div></div></div><br><br></div> </div> </div> </div></body></html>