<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PostalCode"
downloadurl="http://www.5iamas-microsoft-com:office:smarttags"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="State" downloadurl="http://www.5iamas-microsoft-com:office:smarttags"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City" downloadurl="http://www.5iamas-microsoft-com:office:smarttags"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="Street" downloadurl="http://www.5iantlavalampft-com:office:smarttags"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="address" downloadurl="http://www.5iamas-microsoft-com:office:smarttags"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place" downloadurl="http://www.5iantlavalamp.com/"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Tahoma;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>In the class below (where I use … for brevity) when I
have the Activation class not as a QObject but as a plain python class, the loginReponseRcvd()
gets called. As soon as I make it a QObject (so I can emit) it stops working. The
commented out line I tried and it told me that the underlining C++ object was
deleted…<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>Can anyone offer a suggestion?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>Thanks!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>class Activation(QObject):<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>…<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'> def
login (self, username, password):<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:.5in'><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> … <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'> #self.connect(self.http,
SIGNAL('done(bool)'), self, SLOT('loginReponseRcvd(bool)'))<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'> self.connect(self.http,
SIGNAL('done(bool)'), self.loginReponseRcvd)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'> </span></font><font
size=2 face=Tahoma><span lang=DE style='font-size:10.0pt;font-family:Tahoma'>self.http.get(getdata)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span lang=DE style='font-size:
10.0pt;font-family:Tahoma'> </span></font><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>print
'login'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'> def
loginReponseRcvd(self, error):<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'> print
'loginReponseRcvd: ', error<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'> if
error:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'> </span></font><font
size=2 face=Tahoma><span lang=FR style='font-size:10.0pt;font-family:Tahoma'>print
str(self.http.errorString())<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span lang=FR style='font-size:
10.0pt;font-family:Tahoma'> else:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span lang=FR style='font-size:
10.0pt;font-family:Tahoma'> data=str(self.http.readAll())<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span lang=FR style='font-size:
10.0pt;font-family:Tahoma'> </span></font><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>print
'data:', data<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'> QObject.emit(self,
SIGNAL('loggedIn(bool)'), data=='1')<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'> QApplication.exit(0)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'><o:p> </o:p></span></font></p>
<p style='margin:0in;margin-bottom:.0001pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>---</span></font><o:p></o:p></p>
<p style='margin:0in;margin-bottom:.0001pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>Regards,<br>
<br>
Jason Hihn</span></font><o:p></o:p></p>
<p style='margin:0in;margin-bottom:.0001pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>Director of Software Engineering<br>
Eyemaginations, Inc.<br>
<br>
<st1:Street w:st="on"><st1:address w:st="on">600 Washington Ave, Suite #100</st1:address></st1:Street><br>
<st1:place w:st="on"><st1:City w:st="on">Towson</st1:City>, <st1:State w:st="on">MD</st1:State>
<st1:PostalCode w:st="on">21204</st1:PostalCode></st1:place><br>
Domestic: 877.321.5481 ext. 8617<br>
International: 410.321.5481 ext. 8617<br>
Fax: 410.616.8657<br>
<st1:PersonName w:st="on">jason@eyemaginations.com</st1:PersonName><br>
www.eyemaginations.com<br>
www.3d-eye.com<br>
<br>
=================================================<br>
The information transmitted within this email document or fax is intended only
for </span></font><o:p></o:p></p>
<p style='margin:0in;margin-bottom:.0001pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>the person(s) or entity to which it
is specifically addressed and may contain </span></font><o:p></o:p></p>
<p style='margin:0in;margin-bottom:.0001pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>confidential and/or privileged
material of Eyemaginations. Any re-creation, review, </span></font><o:p></o:p></p>
<p style='margin:0in;margin-bottom:.0001pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>distribution, retransmission,
dissemination or other use of, or taking of any action </span></font><o:p></o:p></p>
<p style='margin:0in;margin-bottom:.0001pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>in reliance upon, this information
by persons or entities other than the intended </span></font><o:p></o:p></p>
<p style='margin:0in;margin-bottom:.0001pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>parties is completely prohibited.
If you have received this email in error, please </span></font><o:p></o:p></p>
<p style='margin:0in;margin-bottom:.0001pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>contact the sender or author and
permanently delete and destroy the email from </span></font><o:p></o:p></p>
<p style='margin:0in;margin-bottom:.0001pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>any computer which houses its
contents. </span></font><o:p></o:p></p>
<p style='margin:0in;margin-bottom:.0001pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>=================================================</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>