rem: var painter = new QPainter(); 
add: var painter = new QPainter(this); 
context: label.onPaintEvent = function ( ev ){  try {    var painter = new QPainter();    if (painter.begin( this ) )    {      painter.drawLine( 0,0,this.width,this.height );      painter.drawLine( this.width,0, 0, this.height );      painter.end();    }    else      println("Failed to paint " + this );  } catch ( error ) {    println( "Error painting: " + error );  }}
meta: 1078	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1078/e5f13b0164e942d5ab137714d48e7e2d342b924f/paintevent.js/clean/kjsembed/tests/paintevent.js