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

deep copy of QStringList

Subject: deep copy of QStringList
From: dejfson
Date: Thu, 2 Oct 2008 16:33:56 +0200
Dear All,
how do I force to make a deep copy of QStringList? I use QThread to
fill my string list, then pass via signals
into another thread together with QMutex. However, there I'd like to
avoid thread problems, make a deep copy of my
string list so I could publish that without worries about
locking/unlocking mechanism.

So far I have in my mind just to add an element to copied source and
then delete one. This forces deep copy,
however it is not a nice trick..
thanks
d.

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

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