blob: 298c00175c724556f605b033a2f1f7f2a4788a5b (
plain)
1
2
3
4
5
6
7
8
9
10
|
import QtQuick
Canvas {
onPaint: {
// Does not actually compile to C++ because getContext() is not properly specified
// However, it shouldn't crash
var ctx = getContext("2d");
ctx.clearRect(0, 0, width, height);
}
}
|