Re: [Interest] [External] Re: How to properly terminate QtConcurrent run

2022-08-17 Thread Sean Murphy via Interest
Thanks for the response! > You should signal processChunk to stop processing early. You can for > example do this through an atomic variable which is periodically checked, e.g. > as part of the stop condition in that loop you mentioned. I'll look into this idea, but some of what my processChunk()

Re: [Interest] Convert to QMetaMethod from QObject + const char *

2022-08-17 Thread Alexey Rusakov
Scott, I guess the trick is to pass SIGNAL() as the second argument, rather than a function or a function object. If you have the specific signal passed to connect() (not a parameter passed from outside) then the following might work for you (assuming C++17): template void func(..., ReceiverT*

Re: [Interest] Convert to QMetaMethod from QObject + const char *

2022-08-17 Thread Volker Hilsheimer
> On 16 Aug 2022, at 22:39, Scott Bloom wrote: > > I have a function that takes in a QObject and const char * signal/slot > > void func( …, QObject * target, const char * member ) > { > …. logic > QObject::connect( ….., target, member ) > … more logic > { > > > So I can call it via > > ….