[Qt-interest] QTableWidget continuous updates and gui freeze

prashant bhutani prashant.bhutani.cse08 at itbhu.ac.in
Fri Jul 15 13:35:29 CEST 2011


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

> But you had the same problem when you repeatly update the QTableWidget?
>
yeah, problem was there no matter how many times I update QTableWidget. At
that time, it looked like that QTableWidget requires not to be the focused
widget while being refreshed.

>
> 2011/7/15 prashant bhutani <prashantbhutani2008 at gmail.com>:
> >
> > 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/b2c44a9d/attachment.html 


More information about the Qt-interest-old mailing list