Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, March 2002
External Thread Question


Message 1 in thread

Hi all

I'm a QT newbie, and have the following problem:

I created a program using a thread library called JThread/C++, and am
busy creating a QT frontend for it.  The program is basically a counter.
Each thread has an (int) condition which is updated in a non-threaded
class. So what I'm trying to do is, everytime that this value is updated
in the non-threaded class, the value should be updated in QLCDNumber
display (the non-threaded class is inheriting QObject, so I'm using
signals and slots to do the updating from this class to the QLCDNumber's
display(int) function in the GUI class), but the problem comes in when I
start the threads, the GUI freezes.  Why is that?

Any help would be appreciated.

Thanks
William Miles


Message 2 in thread

Hi,

> I created a program using a thread library called JThread/C++, and am
> busy creating a QT frontend for it.  The program is basically a counter.
> Each thread has an (int) condition which is updated in a non-threaded
> class. So what I'm trying to do is, everytime that this value is updated
> in the non-threaded class, the value should be updated in QLCDNumber
> display (the non-threaded class is inheriting QObject, so I'm using
> signals and slots to do the updating from this class to the QLCDNumber's
> display(int) function in the GUI class), but the problem comes in when I
> start the threads, the GUI freezes.  Why is that?

This is covered by this part of the Qt documentation:
	http://doc.trolltech.com/threads.html

Dimitri