[Interest] Are slots even needed these days?

Constantin Makshin cmakshin at gmail.com
Thu Mar 17 06:23:48 CET 2016


Another thing I personally don't like in the new connection syntax is
that it forces signals to be public, making it possible to do all type
of wonders by faking/simulating events on behalf of other objects.

For example:
QLineEdit* edit = new QLineEdit("foo");
// ...
edit->textChanged("bar");

On 03/16/2016 08:24 PM, John Weeks wrote:
> Nobody's mentioned the fact that an overridden virtual slot requires an absolutely horrid cast in order to use the new PMF syntax.
> 
> -John Weeks

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160317/5baf46d7/attachment.sig>


More information about the Interest mailing list