[Interest] Expected event execution order in this multi-thread application

Vasily Pupkin shkodindanil.letmework at gmail.com
Mon Sep 30 12:04:18 CEST 2019


>> - E2 is sitting in the event queue of T1 at the second position but gets
>> never executed.

Use combination of

  QCoreApplication::sendPostedEvents();
  QCoreApplication::processEvents();


.


пн, 30 сент. 2019 г. в 11:37, Rainer Wiesenfarth <
rainer_wiesenfarth at trimble.com>:

> On Mon, Sep 30, 2019 at 9:26 AM Thiago Macieira <thiago.macieira at intel.com>
> wrote:
>
>> [...] Anyway, this is when you should use processEvents(): never.
>>
>
> ...which would be a perfect reason to at least mark it as obsolete in Qt 6?
>
> I strongly second Thiago's recommendation: processEvents() usually
> introduces more problems than it solves.
>
> --
> Software Engineer | Trimble Imaging Division
> Rotebühlstraße 81 | 70178 Stuttgart | Germany
> Office +49 711 22881 0 | Fax +49 711 22881 11
> http://www.trimble.com/imaging/ | http://www.inpho.de/
>
> Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim
> Eingetragen beim Amtsgericht Darmstadt unter HRB 83893,
> Geschäftsführer: Dr. Frank Heimberg, Jürgen Kesper
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190930/007a0461/attachment.html>


More information about the Interest mailing list