On Thu, Mar 17, 2016 at 08:23:48AM +0300, Constantin Makshin wrote: > 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");
You can trigger that emission in Qt 4, too, e.g. using QMetaObject::invokeMethod(edit, "textChanged", ...) Andre' _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest