Re: [PyQt] QThreads and exceptions

2012-12-18 Thread José M . Rodriguez Bacallao
anyone? On Mon, Dec 17, 2012 at 3:53 PM, José M. Rodriguez Bacallao jmr...@gmail.com wrote: how to catch an exception thrown from a QThread, if I use python threads, I can catch it but no from QThread. ___ PyQt mailing list

Re: [PyQt] QThreads and exceptions

2012-12-18 Thread Szabo, Patrick (LNG-VIE)
If i understand you correctly you want to handle an exception that is thrown withing a thread in the main-thread right ? You could just catch the exception within the thread and send a signal to the main-thread. Von: pyqt-boun...@riverbankcomputing.com

Re: [PyQt] QThreads and exceptions

2012-12-18 Thread José M . Rodriguez Bacallao
no, what I want is to catch the exception in the main thread! On Tue, Dec 18, 2012 at 8:39 AM, Szabo, Patrick (LNG-VIE) patrick.sz...@lexisnexis.at wrote: If i understand you correctly you want to handle an exception that is thrown withing a thread in the main-thread right ? ** **

Re: [PyQt] QThreads and exceptions

2012-12-18 Thread Szabo, Patrick (LNG-VIE)
I’m no expert on this but I don’t think you can catch it directly there. I think you need to catch it in the thread and then send a signal. But that should not be a problem since the handling can still happen in the mainthread. Von: José M. Rodriguez Bacallao [mailto:jmr...@gmail.com]