
Originally Posted by
Fallen_
because ur asking too many weird questions...
I'm not asking weird questions. I just have to practically extract each piece of answer out of you because you are not eagar to surrender any information willingly.
Let's go back to the beginning...
Please modify your methods so that they contain the following pieces of code:
Channel::printText(const QString& text) {
qDebug() << Q_FUNC_INFO << text;
read->append(text);
}
Channel::printText(const QString& text) {
qDebug() << Q_FUNC_INFO << text;
read->append(text);
}
To copy to clipboard, switch view to plain text mode
void MainWindow::appendToWindow() {
// ...
Channel
* chan
= new Channel
(0,
QString::fromStdString(channel
),
0);
chan
->printText
(QString::fromLatin1(tmp
));
qDebug
() << Q_FUNC_INFO << tmp <<
QString::fromLocal8Bit(tmp
);
read->append(tmp);
// ...
}
void MainWindow::appendToWindow() {
// ...
Channel* chan = new Channel(0, QString::fromStdString(channel), 0);
chan->printText(QString::fromLatin1(tmp));
qDebug() << Q_FUNC_INFO << tmp << QString::fromLocal8Bit(tmp);
read->append(tmp);
// ...
}
To copy to clipboard, switch view to plain text mode
Please show us the output and the relevant pieces of sourcecode after the changes.
Also, if you are using Qt Creator, please right click on your "read" variable from the "Channel" class, choose "Rename symbol under cursor" (or something like that) and enter "channelText". Do the same for MainWindow::read and rename it to "serverText". Then we won't be confusing the two variables anymore...
Bookmarks