<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<!-- Template generated by Exclaimer Mail Disclaimers on 02:39:28 Dienstag, 18 Dezember 2012 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">P.318157f4-bd21-417c-a638-b45fcf5c4151 {
MARGIN: 0cm 0cm 0pt
}
LI.318157f4-bd21-417c-a638-b45fcf5c4151 {
MARGIN: 0cm 0cm 0pt
}
DIV.318157f4-bd21-417c-a638-b45fcf5c4151 {
MARGIN: 0cm 0cm 0pt
}
TABLE.318157f4-bd21-417c-a638-b45fcf5c4151Table {
MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
page: Section1
}
</style>
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@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:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE-AT" link="blue" vlink="purple">
<p class="318157f4-bd21-417c-a638-b45fcf5c4151"></p>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">If i understand you correctly you want to handle an exception that is thrown withing a thread in the main-thread right ?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">You could just catch the exception within the thread and send a signal to the main-thread.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> pyqt-bounces@riverbankcomputing.com [mailto:pyqt-bounces@riverbankcomputing.com]
<b>Im Auftrag von </b>José M. Rodriguez Bacallao<br>
<b>Gesendet:</b> Dienstag, 18. Dezember 2012 14:34<br>
<b>An:</b> PyQt Mailing List<br>
<b>Betreff:</b> Re: [PyQt] QThreads and exceptions<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">anyone? <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Mon, Dec 17, 2012 at 3:53 PM, José M. Rodriguez Bacallao <<a href="mailto:jmrbcu@gmail.com" target="_blank">jmrbcu@gmail.com</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">how to catch an exception thrown from a QThread, if I use python threads, I can catch it but no from QThread.
<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p></p>
<p class="318157f4-bd21-417c-a638-b45fcf5c4151"><span lang="DE-AT"></span> </p>
<p class="318157f4-bd21-417c-a638-b45fcf5c4151"><span lang="DE-AT">. . . . . . . . . . . . . . . . . . . . . . . . . .</p>
</span><font color="#ff0000"><font color="#ff0000"><font color="#ff0000">
<p class="318157f4-bd21-417c-a638-b45fcf5c4151"><span style="font-family:Calibri; font-size:x-small; ">Ing.
</span><span style="font-family:Calibri; font-size:x-small; ">Patrick</span><font size="2" face="Calibri"> </font><span style="font-family:Calibri; font-size:x-small; ">Szabo</span></p>
<p class="318157f4-bd21-417c-a638-b45fcf5c4151"><span style="font-family:Calibri; font-size:x-small; color: #000000; ">Developer</span></p>
<p class="318157f4-bd21-417c-a638-b45fcf5c4151"></font></font></font><font color="#7d7d7d" size="2" face="Calibri">LexisNexis</font></p>
<p class="318157f4-bd21-417c-a638-b45fcf5c4151"><span style="font-family:Calibri; font-size:x-small; color: #7D7D7D; ">A-1030 Wien, Marxergasse 25</span></p>
<p class="318157f4-bd21-417c-a638-b45fcf5c4151"><font color="#7d7d7d" size="2" face="Calibri"></font> </p>
<p class="318157f4-bd21-417c-a638-b45fcf5c4151"><span style="font-family:Calibri; font-size:x-small; color: Black; "><span style="font-family:Calibri; font-size:x-small; color: Black; "><a href="mailto:Patrick.Szabo@lexisnexis.at" title="Click to send email to Szabo, Patrick (LNG-VIE)" target=""><span style="font-family:Calibri; font-size:x-small; color: Black; ">Patrick.Szabo@lexisnexis.at</span></a></span></span></p>
<font color="#ff0000">
<p class="318157f4-bd21-417c-a638-b45fcf5c4151"><span style="font-family:Calibri; font-size:x-small; color: #7D7D7D; ">Tel.: +43 1 53452 1573</span></p>
<p class="318157f4-bd21-417c-a638-b45fcf5c4151"><span style="font-family:Calibri; font-size:x-small; color: #7D7D7D; ">Fax.: +43 1 534 52 146</span></p>
<p class="318157f4-bd21-417c-a638-b45fcf5c4151"><span style="font-family:Calibri; font-size:x-small; color: #7D7D7D; "></span></p>
</font>
<p class="318157f4-bd21-417c-a638-b45fcf5c4151"><span lang="DE-AT">. . . . . . . . . . . . . . . . . . . . . . . . . .</span></p>
<p class="318157f4-bd21-417c-a638-b45fcf5c4151"><span lang="DE-AT"></span> </p>
<p class="318157f4-bd21-417c-a638-b45fcf5c4151"></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
</body>
</html>