[Qt-interest] QTableWidget continuous updates and gui freeze

Kishore Jonnalagadda kitts.mailinglists at gmail.com
Thu Jul 14 18:57:40 CEST 2011


On Jul 14, 2011 9:35 PM, "Riccardo Roasio" <riccardo.roasio at gmail.com>
wrote:
>
> Hi,
>
> i have a QTableWidget derived class that receive update events from a
> thread reading from a serial line.
> I noticed that on high traffic there are so many updates request thata
> the gui seems to freeze showing nothing...
>
>
> How can i solve this problem?

Since you say "thread"... that could be part of the problem.

QAIM is not thread safe. And a view has to be the gui thread. As a result,
both the model and the "serial" data feeder need to be in the gui thread.

However, I have heard here of people having no problems with the view and
the model in different threads, but only with a readonly view. Just make
sure that the object writing to the model is in the same thread as the model
itself.

Kishore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110714/ef3a8ef4/attachment.html 


More information about the Qt-interest-old mailing list