[Development] QWebChannel setTimeout

Hausmann Simon Simon.Hausmann at digia.com
Sat Jul 5 05:44:29 CEST 2014


Let me ask the other way around: is there a special reason why you're including qwebchannel.js in a qml application? :)


Simon

  Opprinnelig melding
Fra: Bernd Lamecker
Sendt: 19:41 fredag 4. juli 2014
Til: development at qt-project.org
Emne: [Development] QWebChannel setTimeout


Hi,

is there a special reason why you call
setTimeout(function() { channel.exec({type: QWebChannelMessageTypes.idle}); }, 0);
(Line 179 & 197 in qwebchannel.js)
via setTimeout? For me this also works without doing a singleshot.
But the setTimeout function is not defined when including qwebchannel.js into a qml application.

Regards,
Bernd
_______________________________________________
Development mailing list
Development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/development



More information about the Development mailing list