Re: Drawing vector graphics in js widgets

2010-02-24 Thread Aaron J. Seigo
On February 24, 2010, Mohamed Ikbel Boulabiar wrote: > Thanks for the answer and for the api errata you send yesterday. > > I tried with the code below, but it only draws things without changing > the properties of the pen. > > > // > var painter = new QPainter > var pen = new QP

Re: Drawing vector graphics in js widgets

2010-02-24 Thread Mohamed Ikbel Boulabiar
Thanks for the answer and for the api errata you send yesterday. I tried with the code below, but it only draws things without changing the properties of the pen. // var painter = new QPainter var pen = new QPen pen.color = new QColor("red") pen.width = 15 //painter.setbrush = p

Re: Drawing vector graphics in js widgets

2010-02-24 Thread Aaron J. Seigo
On February 24, 2010, Mohamed Ikbel Boulabiar wrote: > 1. I want to draw vector graphics in a javascript widget and specially > ellipses then thick lines . > Is there an easy way and rapid rendering way to do that ? I can't find var pen = new QPen pen.width = 5 // 5 pixels wide! wooo! pen.color =

Drawing vector graphics in js widgets

2010-02-24 Thread Mohamed Ikbel Boulabiar
Hi all, 1. I want to draw vector graphics in a javascript widget and specially ellipses then thick lines . Is there an easy way and rapid rendering way to do that ? I can't find examples of that in javascript. (the most important) 2. I want also to know how to access special elements in an svg it