所以我的主要功能是:
string s = "\nWelcome to Rawr\n";
const QString output(s);
**emit output(output); <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Getting an error here**
我在 QT Desginer 中设置了一个 Signal,名为:output(const QString &s)
我的信号接收器是我的“表单”......在我的表单中。嗨有:插槽称为“changeOutput(const QString&s)。
void Client::changeOutput(const QString &s)
{
output_box.setText(s);
}
output_box 是一个 QTextEdit 框。
我收到的错误是:TCPClient.cpp:122: error: no match for call to '(const QString) (const QString&)'</p>
我究竟做错了什么?
谢谢 :)