<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>I read the Wikipedia page that explains what SIP is and does,<br>though I can't say I understood everything it explained ;-)<br><br>I'm getting a SIP usage error and I was hoping someone here<br>could help me understand the phenomena...<br><br>In my program (which borrows heavily from the BasicSortFilter <br>example) near the top, I have the line<br><br>    sip.setapi('QVariant', 2)<br><br>My limited understanding is that this is doing some kind of <br>type mapping,...or type casting (pardon the pun)...<br><br>Apparently, this statement has bearing on the "filterRegExpChanged"<br>function.<br><br>Now the code I'm writing gets import into Maya, which as probably<br>many know, is now fully Python/Qt/PyQt compliant  (well sorta', lol)<br>So when I launch my script, I get an error which I'm assuming<br>indicates that somewhere during Maya's
 own launch, it does a<br><br>    sip.setapi('QVariant', 1)<br><br>...but that's speculation....Maya's error message is:<br><br># Error: API 'QVariant' has already been set to version 1<br><br>Now, I've kinda' found a hack around this to get it to actually work<br>in Maya, but I'm worried I might be adversely affecting other PyQt<br>scripts,etc...and I'd to understand what's going on more...<br><br>I'd be very grateful if someone could explain what this little statement<br>is doing behind the scenes...<br>Thank you very much,<br>-James<br><br><br></td></tr></table><br>