[Qt-interest] QThread problem

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Wed Nov 3 14:48:34 CET 2010


On 2010-11-03 Prashant prashant bhutani wrote:

> PS :: This is my first time with QThread and trying to sort things out 

Multithreading on its own is a complex topic; adding Qt asynchronous signals just adds a little bit of complexity to it, but when you are familiar with threads, signaling, rendevouz-patterns, barriers etc. then it should come very easy.

Unless you have a good education in multiprogramming (monitors, barriers, semaphores, reader/writer pattern...) don't touch threads! Simply don't. ;)

> but I am not able to get enough help even from googling and spent my 
> last two days in reading the documentation only.

Try the Qt Mandelbrot example. It shows you how to implement a simple worker thread (calculation) and connecting it with the GUI, so the GUI gets updated asynchronously (and I even had to google up that word to see whether I had spelled it correctly - see, complex topics such as multithreading require complex words as well ;)

Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22






More information about the Qt-interest-old mailing list