Hello guys,
I've been having problems exporting source to a QTextStream using a QStringList.
This is my code trying to export;
Something
Something Two
Something
Something Two
To copy to clipboard, switch view to plain text mode
And i've got;
S O M E T H I N G .... etc...
S O M E T H I N G .... etc...
To copy to clipboard, switch view to plain text mode
This is my code;
for (int j = 0; j < TalkList[i].Script_t.size(); j++)
{
luaTxt <<
QString("\t\t%1").
arg(TalkList
[i
].
Script_t.
at(j
).
toLocal8Bit().
constData());
//luaTxt << TalkList[i].Script_t.value();
}
for (int j = 0; j < TalkList[i].Script_t.size(); j++)
{
luaTxt << QString("\t\t%1").arg(TalkList[i].Script_t.at(j).toLocal8Bit().constData());
//luaTxt << TalkList[i].Script_t.value();
}
To copy to clipboard, switch view to plain text mode
Script_t is a QStringList
I'm trying to parse the lines one by one to the textstream with 2 initial tabs (\t\t) but result is strange.
Please help me it's 6:53 and I've 2 hours trying to solve it
Bookmarks