Re: QGraphicsItem problem - how to save items info ??
Originally Posted by aamer4yu
I want to use a scene where I can add items at different levels.
I have two different classes inherited from QGraphicsItem - CMacro, and CTile;
I am adding both items in a scene with different ZValues.
CMacro *macro = new CMacro(col,row,span);
I am reading the position of macros from file, and I want to save the changed positions of macros in another file ? How do i do it ?
I thought of using Qlist for saving a list of macros added.. but then how do i sync between the items in the list and the items in the scene ??
hey i found the solution.. problem was in using the QList... earlier i was using QList<CMacro> macroList;
all i had to change was QList<CMacro*> macroList;
BTW: how do i delete a threadd ?? is it disabled in this group ??
Bookmarks