qt-interest@trolltech.com
[Top] [All Lists]

Re: Copying items

Subject: Re: Copying items
From:
Date: Mon, 25 Jul 2005 15:31:17 +0200
because of parent ref in item, this item change of parent so desappear from origin list....

create a new qlistview item with a ref of new list parent (destination one) using parameters of original one to initailize the "copy" one created. if you want just one data item and two displayed items........ switch to Qt4 to use new model/view powered widgets

hope this help.....
Vero.

carol.brickley@xxxxxxxxxxxx a écrit :



Hi,

I am trying to copy an item from one listview to another. However, if I use
insertItem(i) it inserts i into the new list view, but also removes it from
the old.  I want it toa ppear in both - is there anotehr function I can
use?

Thanks,

C.
***************************************************************************
Warning: This message is intended only for the use of the individual to whom it 
is addressed
and may contain information that is privileged, confidential and exempt from 
disclosure under applicable law.
If you are not the intended recipient, you are hereby notified that any use, 
dissemination, distribution or copying
of this communication is strictly prohibited.  If you have received this 
communication in error please notify the sender.
Thank you.
***************************************************************************
For more information about UKAEA please visit our website at
http://www.ukaea.org.uk



<Prev in Thread] Current Thread [Next in Thread>