QMetaObject::invokeMethod

Robert Helling helling at atdotde.de
Sat Jul 7 12:36:59 PDT 2018


Thiago,

> On 7. Jul 2018, at 18:54, Thiago Macieira <thiago at macieira.org> wrote:
> 
> Usually, that function is used with Qt::QueuedConnection, which instead of
> calling the method indicated right now, it posts an event to the event queue
> with the arguments you supply. When the event loop gets to that event, the
> method you listed gets finally called.
> 
> Another way of doing the same is by using QTimer::singleShot() with a lambda
> that carries your parameters. But this wasn't available before Qt 5.4, so
> there's a lot of code (and muscle memory) using invokeMethod().

but this doesn’t seem the application in the subsurface code. If you do

git grep invokeMethod

you will find the instances.

Best
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20180707/1f83c114/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 529 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20180707/1f83c114/attachment-0001.sig>


More information about the subsurface mailing list