On quinta-feira, 17 de março de 2016 08:23:48 PDT 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 could do it in a round-about way in Qt 4 by using QMetaObject::invokeMethod. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest