So I have in my main function:
string s = "\nWelcome to Rawr\n";
const QString output(s);
**emit output(output); <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Getting an error here**
I have set up a Signal in QT Desginer named: output(const QString &s)
My receiver for the signal is my "Form"... in my form.h i have: The slot is called "changeOutput(const QString &s).
void Client::changeOutput(const QString &s)
{
output_box.setText(s);
}
output_box is a QTextEdit box.
The error I am receiving is : TCPClient.cpp:122: error: no match for call to ‘(const QString) (const QString&)’
What am I doing wrong?
Thanks :)