Re: QMetaObject::invokeMethod

2018-07-07 Thread Stöger , Berthold
Hi Robert, Still abroad, therefore very briefly: 1) At the risk of being pedantic: This has nothing to do with C++, but with Qt/MOC. This wouldn't even work with plain C++. There's a slightly more modern pointer-to-member-function version, but that didn't compile on qt5.5. 2) I use this to

Re: QMetaObject::invokeMethod

2018-07-07 Thread Lubomir I. Ivanov
On 7 July 2018 at 22:36, Robert Helling wrote: > Thiago, > > On 7. Jul 2018, at 18:54, Thiago Macieira 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

Re: QMetaObject::invokeMethod

2018-07-07 Thread Robert Helling
Thiago, > On 7. Jul 2018, at 18:54, Thiago Macieira 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 >

Re: QMetaObject::invokeMethod

2018-07-07 Thread Thiago Macieira
On Saturday, 7 July 2018 08:37:40 PDT Robert Helling wrote: > Hi, > > I am trying to understand some code that contains invocations of > > QMetaObject::invokeMethod > > I admit I not a C++ person in any sense so could somebody please explain why > one would use such a