[Qt-interest] QTableWidget continuous updates and gui freeze

prashant bhutani prashantbhutani2008 at gmail.com
Fri Jul 15 09:18:42 CEST 2011


On Fri, Jul 15, 2011 at 12:44 PM, Riccardo Roasio <riccardo.roasio at gmail.com
> wrote:

> Why you talk of model? i'm not using a model/view structure.
>
> simply a thread that insert a value into a QList and emit a signal to
> ask the mainwindow to refresh the QTableWidget derived class
>
> Riccardo
>
> 2011/7/14 Bill Crocker <william.crocker at analog.com>:
> > Riccardo Roasio 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?
>
I had the same problem when I tried to refresh QTableWidget but since I was
using QTabWidget and one of the tab has QTableWidget, I simply toggled
between tabs after refreshing QTableWidget and the table was refreshed.
Though, its not a perfect solution but worked for me.

> >>
> >
> > Yield the receiving thread.
> >
> >> Thanks,
> >> Riccardo
> >> _______________________________________________
> >> Qt-interest mailing list
> >> Qt-interest at qt.nokia.com
> >> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
> >>
> >
> >
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at qt.nokia.com
> > http://lists.qt.nokia.com/mailman/listinfo/qt-interest
> >
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110715/6249edbe/attachment.html 


More information about the Qt-interest-old mailing list