Important: Please read the Qt Code of Conduct -

How to stop GUI update during time-critical functions

  • Hello.
    We have a WEC7 + Qt system for iMX6 Colibri computer. The problem is the following: in a couple of time-critical places there happens a significant delay during display update which we would like to avoid. I tried to use setUpdatesEnabled(false) methods to all widgets and dialogs, enabling them after the critical part - this really helps but GUI starts to blink at those places. Any other idea?

  • Moderators

    Hi @ginrider, and welcome!

    The usual solution is to put the time-critical computation in a separate thread. Is this feasible for your project?

    Also, you could avoid changing the contents of widgets during the time-critcal phase (for example, avoid calling setValue() or emitting any signals that cause updates)

Log in to reply