[Interest] Calling QT Class method from pthread thread

Gonzalo Aguilar Delgado gaguilar at aguilardelgado.com
Thu Oct 5 11:42:55 CEST 2017


Hi Thiago,

Ah, I tottally agree, then. I will stop this thread. Because even if 
it's very interesting is turning a little bit off-topic.

If you are in IRC we can talk since I'm very interested in this kind of 
design rules.

Best regard

And thank you a lot!


On 04/10/17 20:04, Thiago Macieira wrote:
> On Wednesday, 4 October 2017 09:30:46 PDT Thiago Macieira wrote:
>> It would have, if you hadn't explicitly cast the difference away. A lot of
>> Glib-using code does that because of GCallback and G_CALLBACK.
>>
>> Avoid those like the plague, except for functions that really take no
>> arguments and return void. Any other use is flawed by design.
> In other words, the only place you should use G_CALLBACK is where you don't
> need to use it. If your code compiles without G_CALLBACK, it is correct. If
> you needed G_CALLBACK, then you might have hid a problem from the compiler.
>
> In other words, anywhere where you need G_CALLBACK is a flawed design.
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20171005/eeba6d7d/attachment.html>


More information about the Interest mailing list