Hi all,

I'm starting to use QThreads to break some I/O and computationally intensive functions away from my GUI. I'm at the level of understanding that I know how to create/start/poll/destroy threads, and have inter-thread communication working. I'm now looking at error handling, but can't find any information--perhaps I'm wording my queries wrong?

I have a function which would throw an exception upon encountering an error. This function is one I wish to move to its own thread. From what I can see, I can use inter-thread messaging to keep track of the thread's process, and if it quits before reaching "100%", then an error occurred, and I can derive the type from the percentage (the first 10% will be file read errors, etc.).

But I don't want to implement anything before seeing if there is an "official" implementation of error handling for threads. If I can override QThread::run() to throw an exception, that's great, I wouldn't have to re-write some of my code. But If I have to use the above method, so be it. If anyone has any links to docs or examples, they'd be much appreciated. Thanks!