[Qt-interest] QThread problem
Gopalakrishna Bhat
gopalakbhat at gmail.com
Wed Nov 3 12:18:18 CET 2010
Hi,
You cannot access or modify any of the widget in the main GUI thread
from any other thread. You can emit a signal in your thread and
connect it to a method in the main GUI thread which then does the
updation.
With regards,
Gopalakrishna Bhat
>
> Hi Everyone,
>
> I am trying to build the System Monitor (similar to one in Linux which is in
> GTK) in Qt as my OS lab project.
> I have done everything needed but now I am stuck with to update it
> periodically with the processes running on the system.
> To do so, I thought to implement QThread in my application but since the
> main Thread (GUI thread) is always running, I am not able to modify the
> QTableWidget* widget which is used to show the processes in tabular form.
> Whenever I run my application, in child thread, I got the output that "
> Prashant Bhutani
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
My blog http://gkbhat.blogspot.com
More information about the Qt-interest-old
mailing list