SOLUTION:
message is the variable, but also the name of the class. So, change the name of the variable
I have a class that allows me to do
message->parseMessage("hello");
message->parseMessage("hello");
To copy to clipboard, switch view to plain text mode
From another thread I call a function in the first thread, I also pass a QString to that function.
void Client
::readThreadMessage(QString message
){ message->parseMessage(message);
}
void Client::readThreadMessage(QString message){
message->parseMessage(message);
}
To copy to clipboard, switch view to plain text mode
For some reason I get this compiler error:
client.cpp: In member function `void Client::readThreadMessage(QString)':
client.cpp:127: error: base operand of `->' has non-pointer type `QString'
make[1]: *** [release\client.o] Error 1
What is wrong ? Why I cannot just use the QString that came from the other thread ?
Bookmarks