when i run the code ,it exec correctly
codes:
qint64 bytes = buffer->write(this->readAll());
buffer->seek(buffer->pos() - bytes);
while (buffer->canReadLine())
{
write(line);
}
QBuffer* buffer = new QBuffer(this);
buffer->open(QIODevice::ReadWrite);
qint64 bytes = buffer->write(this->readAll());
buffer->seek(buffer->pos() - bytes);
while (buffer->canReadLine())
{
QByteArray line = buffer->readLine();
write(line);
}
To copy to clipboard, switch view to plain text mode
but when i write("xxxxxxx"),or
write(s.toLatin1());
write(s.Ascii());
write(s.toLatin1().data());
..........................
QString s="xxxxxx"
write(s.toLatin1());
write(s.Ascii());
write(s.toLatin1().data());
..........................
To copy to clipboard, switch view to plain text mode
i can't write successlly,who can help me
Bookmarks