PDA

View Full Version : Values of a Q3ListView



martisho
13th November 2009, 13:21
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.


Q3ListViewItemIterator it(run->ui.lvSignals);

while (it.current()) {
lst_signals.append(it.current());
++it;
}

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.