[Interest] Are slots even needed these days?

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Wed Mar 16 15:51:09 CET 2016


Il 16/03/2016 15:24, Nikos Chantziaras ha scritto:
> I can connect to Foo::bar either way. If I don't intend to ever use the
> old-style connect syntax, is there a reason to have "public slots:" anymore?

It's still needed if you want to expose those methods to QML / 
scripting, use QMetaObject::invokeMethod, and possibly some other cases.

Cheers,
-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908
KDAB - The Qt Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4068 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160316/03f26777/attachment.bin>


More information about the Interest mailing list