[Qt-interest] QThread problem

Joshua Wambua gmail at blueprint-group.co.ke
Wed Nov 3 14:32:00 CET 2010


OK, I will look into it. I faced the same problem when I tried to update an
on screen graph automatically without blocking the ui

 

  _____  

From: prashant bhutani [mailto:prashantbhutani2008 at gmail.com] 
Sent: Wednesday, November 03, 2010 4:30 PM
To: Joshua Wambua
Cc: qt-interest at trolltech.com
Subject: Re: [Qt-interest] QThread problem

 

Hi,

Thanks. I'll try with QTimer (for the sake of making it work) but I still
want to know how I can use QThread in my application.

Prashant Bhutani



On Wed, Nov 3, 2010 at 4:38 PM, Joshua Wambua <gmail at blueprint-group.co.ke>
wrote:

Why don't you use a timer?

You could use QTimer to refresh the table every few seconds or so

 

  _____  

From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of prashant bhutani
Sent: Wednesday, November 03, 2010 2:00 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] QThread problem

 

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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101103/7f6711c1/attachment.html 


More information about the Qt-interest-old mailing list