PDA

View Full Version : QueuedConnection pointer problem



cafu
2nd March 2010, 14:24
Hi everybody, i have a class that look like this.

struct toSignal{

private:
QString str;
QString aa;
toSignal *next;
public:
// accesfunction to the member.
QString toString()
{
QString ret=""
ret=str;
ret+=aa;
if(next)
{
ret+=next.toString();
}
return ret;

}
};

i have a working thread that modifiied the data in the structure, and trigger a signal that is connected to the gui thread using QueuedConnection, but after i trigger the signal i modified the data and trigger a new signal. but for the gui is displaying twice the same information. but if trigger a signal with the string created out of the toString() function the info is correct, or if i use BlockingQueuedConnection.