Hi all,

i have a Q3ListView, with several Q3ListViewItem. What i do is create a QList of Q3ListViewItem because in that list the values can change , but i don´t want that the values in the first Q3ListView change.

I do this in order to copy the content of the Q3ListView in the new QList.

Qt Code:
  1. Q3ListViewItemIterator it(run->ui.lvSignals);
  2.  
  3. while (it.current()) {
  4. lst_signals.append(it.current());
  5. ++it;
  6. }
To copy to clipboard, switch view to plain text mode 

run->ui.lvSignals is the original listview and lst_signal is the new one where the values can change. When i want to modify the values of an item of lst_signal, automatically ui.lvSignals change its value at the same time.

Any idea to avoid this situation, and only change the value of the new QList (lst_signals);

Thank you very much.