venk2ksubbu
25th June 2010, 14:04
Hi All,
I have following classes:
Class topLevel creates objects of classes A and B.
There is a signal named 'Out' in class A and slot named 'Print' in class B. Now the signal 'Out' from class A is connected to slot 'Print' of class B in the object of topLevel class.
class C inherits class A. In class C I am creating a process using QProcess. Also I am creating a thread using QThread which reads standard output from the above mentioned process and emits a signal, which internally emits 'Out' signal of class A. But I observed that the signal is not processed immediately. It takes lot of time to print the output, as I am displaying the output in a text widget in the slot 'Print'.
Can anyone please suggest a method to make the application to process the emitted signal immediately.
Thanks,
Subbarao
I have following classes:
Class topLevel creates objects of classes A and B.
There is a signal named 'Out' in class A and slot named 'Print' in class B. Now the signal 'Out' from class A is connected to slot 'Print' of class B in the object of topLevel class.
class C inherits class A. In class C I am creating a process using QProcess. Also I am creating a thread using QThread which reads standard output from the above mentioned process and emits a signal, which internally emits 'Out' signal of class A. But I observed that the signal is not processed immediately. It takes lot of time to print the output, as I am displaying the output in a text widget in the slot 'Print'.
Can anyone please suggest a method to make the application to process the emitted signal immediately.
Thanks,
Subbarao