[Qt-interest] Problem about QScript

Zhongmiao Li mars.leezm at gmail.com
Mon Dec 13 09:35:41 CET 2010


Hi everyone,
is someone familiar with QScript?
And do you know what usually causes the following error meesage?

TypeError: Result of expression 'canvas' [undefined] is not an object.

My code is

var canvas = document.getElementById('tutorial');
var ctx = canvas.getContext('2d');

The error is throwed in the second line.  But I have checked  IsObject(),
the value is True,  IsUndefined(), the value is False.
 Thanks a lot !

-- 
Best regards
Li Zhongmiao
Digital Media, College of Computer Science, Zhejiang University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101213/a4c46ba3/attachment.html 


More information about the Qt-interest-old mailing list