PDA

View Full Version : Qt GUI Dialog update widgets Labels - freeze



augusbas_55
4th February 2016, 11:17
Hi,

I have developed an Qt [4.8.4- Windows XP] application to receive data from CAN communication and Serial Port using Q Threads.

My Main Window [Q Dialog] have all the widgets for the GUI update.

On execution the application work for almost 20 minutes and after that the GUI update stops. I am using a Touch Screen based display.

When i touch the screen / move mouse / Keypad events wakes up the GUI and the update is working.

I have used repaint() and Update() for all the widgets and dialog and its not working. What could be the problem?

Is there any way i can call refresh screen from Qt or simulate events to make my screen active. Please guide

anda_skoa
4th February 2016, 12:41
You could investigate if you ever call update() or repaint() accidentally from a thread.
Also check if any updating/painting method interacts with locks and whether those locks are held longer than you expect.

You could also start a timer in the main thread and have it regularily log a time stamp to a file and then check if it has longer interval between logs than expected.

Cheers,
_