[Interest] QNetwork classes for submitting google forms

Thiago Macieira thiago.macieira at intel.com
Sun Jun 13 17:02:54 CEST 2021

On Friday, 11 June 2021 21:05:08 PDT Max Paperno wrote:
> > Insert a "return" here and let your slot be called when the time is right.
> Right, too much Python lately... "should" have been `processEvents()`
> which is when I realized there were no events to process w/out a Qt loop
> in the first place.  Returning from main() wouldn't have solved the
> issue though.

Please do as I said: insert a return and let the event loop handle calling 
your slots.

Nested event loops are an anti-pattern. Don't write code like that unless you 
really must. And if you do, use QEventLoop.

Don't use processEvents(). That's only slightly less evil than sleep().

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel DPG Cloud Engineering

More information about the Interest mailing list