Hi...

yaa i got the basic idea..
what i have done is this now:

First the creation of the Line List:
Qt Code:
  1. QList<Q3CanvasItem *> lineList;
  2.  
  3. Q3CanvasItem **l;
  4. l = new Q3CanvasLine*[numLines]; //numLines is the number of lines on Canvas.
  5. for(i=0;i<numLines;i++)
  6. {
  7. l[i] = new Q3CanvasLine(yourCanvas);
  8. l[i] = canvasLine[i];
  9. lineList.append(l[i]);
  10. }
  11.  
  12. Same for the Rectangle;
To copy to clipboard, switch view to plain text mode 

Is it correct...