
Originally Posted by
wysota
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..

Originally Posted by
wysota
Can we see the code?
Q3Canvas *m_pCanvas;
Q3CanvasLine *pLine;
QList <Q3CanvasItem
*> m_globalOutYLine;
//m_globalOutYLine is filled with a canvas lines...
//lineVal is the value of the line which has to be coloured from a value set
pLine = (Q3CanvasLine*)m_globalOutYLine[lineVal];
pLine
->setPen
(QPen(color
));
pLine->show();
m_pCanvas->update();
Q3Canvas *m_pCanvas;
Q3CanvasLine *pLine;
QList <Q3CanvasItem*> m_globalOutYLine;
//m_globalOutYLine is filled with a canvas lines...
//lineVal is the value of the line which has to be coloured from a value set
pLine = (Q3CanvasLine*)m_globalOutYLine[lineVal];
pLine->setPen(QPen(color));
pLine->show();
m_pCanvas->update();
To copy to clipboard, switch view to plain text mode

Originally Posted by
wysota
Did you mark those items as changed?
QCanvasItem *item;
QCanvas *canvas;
//...
canvas->setChanged(item->boundingRect());
QCanvasItem *item;
QCanvas *canvas;
//...
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
Bookmarks