[Qt-interest] Qt Webkit addToJavaScriptWindowObject
Sylvain Pointeau
sylvain.pointeau at gmail.com
Wed May 26 09:33:47 CEST 2010
Hello,
I wonder why QList<QString> cannot be used from the javascript side?
frame->addToJavaScriptWindowObject( QString("MyApi"), this );
QList<QString> MyApi::getList() {
QList<QString> l;
l << "01" << "02" << "03" << "04" << "05";
return l;
}
and in javascript:
var l = MyApi.getList();
doesn't work.
if I use QList<QVariant>, it works.
do you know why?
Best regards,
Sylvain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100526/72a03a09/attachment.html
More information about the Qt-interest-old
mailing list