Quote Originally Posted by wysota
Are you aware of QCanvas::allItems()?
yaa.. but i had to maintain a list of different item types.. so i made a list for each set of items... allItems would have returned me all the items but i needed seperate list for each type..

Quote Originally Posted by wysota
Can we see the code?
Qt Code:
  1. Q3Canvas *m_pCanvas;
  2. Q3CanvasLine *pLine;
  3. QList <Q3CanvasItem*> m_globalOutYLine;
  4.  
  5. //m_globalOutYLine is filled with a canvas lines...
  6. //lineVal is the value of the line which has to be coloured from a value set
  7.  
  8. pLine = (Q3CanvasLine*)m_globalOutYLine[lineVal];
  9. pLine->setPen(QPen(color));
  10. pLine->show();
  11.  
  12. m_pCanvas->update();
To copy to clipboard, switch view to plain text mode 

Quote Originally Posted by wysota
Did you mark those items as changed?
Qt Code:
  1. QCanvasItem *item;
  2. QCanvas *canvas;
  3. //...
  4. canvas->setChanged(item->boundingRect());
To copy to clipboard, switch view to plain text mode 
No i didnt do so... would try to do so and see what happens..

Thank you,

with regards,
Kapil