Qt Reference Documentation

linestye.js Example File

script/context2d/scripts/linestye.js
 var ctx = document.getElementById('tutorial').getContext('2d');
 ctx.save();
   for (i=0;i<10;i++){
     ctx.lineWidth = 1+i;
     ctx.beginPath();
     ctx.moveTo(5+i*14,5);
     ctx.lineTo(5+i*14,140);
     ctx.stroke();
   }
 ctx.restore();
X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();