I have no idea why I am getting this problem.

Qt Code:
  1. if(!doc.setContent(messageIn))
  2. cout << "The message received from the client is not well formed XML\n";
To copy to clipboard, switch view to plain text mode 

I have included QDomDocument, and I get this error:

message.cpp: In member function `void Message:arseMessage(QString)':
message.cpp:28: error: request for member `setContent' in `doc', which is of non-class type `QDomDoc
ument ()()'

Why, why why ?