Results 1 to 2 of 2

Thread: Qt GUI Dialog update widgets Labels - freeze

  1. #1
    Join Date
    Feb 2016
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Qt GUI Dialog update widgets Labels - freeze

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt GUI Dialog update widgets Labels - freeze

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

Similar Threads

  1. Replies: 14
    Last Post: 7th December 2011, 04:57
  2. how to force widgets update
    By Onanymous in forum Newbie
    Replies: 5
    Last Post: 14th June 2010, 18:37
  3. Dialog Update before shown
    By winder in forum Qt Programming
    Replies: 3
    Last Post: 27th February 2010, 19:50
  4. Update to 4.4.2 - Now I Have A Transparent Dialog
    By mclark in forum Qt Programming
    Replies: 10
    Last Post: 6th October 2008, 21:11
  5. Widgets visual update / synchronization
    By Caius Aérobus in forum Qt Programming
    Replies: 4
    Last Post: 27th November 2007, 13:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.