[Qt-interest] QTableWidget continuous updates and gui freeze

Riccardo Roasio riccardo.roasio at gmail.com
Fri Jul 15 13:29:24 CEST 2011


But you had the same problem when you repeatly update the QTableWidget?

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
>
>



More information about the Qt-interest-old mailing list