
Originally Posted by
Broderick
I'd imagine it was here:
Code:
"[Déconnexion Client] " + _name
"[Déconnexion Client]" is a char*, the + operator for a char* doesn't concatenate strings together. You need to make it a QString where they've overloaded the + operator.
I.e:
Code:
logBox->append(QString("[Déconnexion Client] ") + _name);
If that doesn't fix the error there may be something wrong with your log.
It was a dangling pointer(the source of the problem was posted outside of these code snippets. I helped gab on MSN). QString overloads the + operator so that you can use it with a char pointer.