Hi,<div><br></div><div>I managed to create run PyQt inside 3ds Max days before, I know no XSI, but the principle is same. I use </div><div><br></div><div><a href="http://doc.trolltech.com/solutions/qtwinmigrate/winmigrate-walkthrough.html">qtwinmigrate</a></div>
<div><br></div><div><a href="http://doc.trolltech.com/solutions/qtwinmigrate/winmigrate-walkthrough.html"></a>it can hook a special qt widget inside any hwnd (MFC only) you give. It does appear to be a child window inside 3ds max. You need (boost) python C API to embed Python inside the C/C++ app, plugin in this case.</div>
<div><br></div><div>Second question is tricky, I solve this problem in Max by using COM/DCOM. Register 3ds Max as a COM server, so pywin32 can connect 3ds Max to do stuff, and vice versa. Does XSI have COM?</div><div><br>
</div><div><br></div><div>zhang</div><div><br></div><div><br><br><div class="gmail_quote">On Sun, Feb 27, 2011 at 12:07 AM, Guy Dubost <span dir="ltr"><<a href="mailto:gdubost@gmail.com">gdubost@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>Hi , </div>
<div> </div>
<div>I make some tests to run PyQt within Softimage (3D app) but the question could be for any app Python-able</div>
<div> </div>
<div>I can create a Qt window and call func from XSI  API</div>
<div>but what I cannot do is get the window more linked to SoftImage, that means:</div>
<div>- Qt window as a child of XSI (I could minimize both windows together)</div>
<div>- Linked XSI events to drive Qt func </div>
<div> </div>
<div>So my question is </div>
<div>Is there a way to pass a Window handle (the one of XSI) to a QT widget like the AssociateHandle from WxPython Framework. </div>
<div>There is one to retrieve the ->WinId() but I dont see anything to set the ID or associate a parent (reparent() maybe) that is not a QWidget (Sotimage is not a Qwidget)</div>
<div> </div>
<div>Any advice or experience would be appreciated .</div>
<div> </div><font color="#888888">
<div>Guy</div>
</font><br>_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br></div>