[Qt-interest] QScript Newbie Question
"Alexander Carôt"
alexander_carot at gmx.net
Sun Feb 7 11:38:33 CET 2010
Hi all,
I just started using QScript and currently work with the sample code of the documentation. In that context I have a little problem with the following code:
QScriptEngine eng;
QLineEdit *edit = new QLineEdit("",this);
QScriptValue handler = eng.evaluate("function(text) { print('text was changed to', text); }");
qScriptConnect(edit, SIGNAL(textChanged(const QString &)), QScriptValue(), handler);
It compiles fine but whenever I change the text of the edit field nothing happens. So, my question is how I can verify the functionality that the signal reaches the script-slot ? So far I expected to have the terminal message "text was changed to ..." or am I mistaken ?
Thanks in advance,
best
-- A l e x
--
Dr.-Ing. Alexander Carôt
Email : Alexander at Carot.de
Tel.: +49 (0)177 5719797
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
More information about the Qt-interest-old
mailing list