Hello guys,

I've been having problems exporting source to a QTextStream using a QStringList.

This is my code trying to export;

Qt Code:
  1. Something
  2. Something Two
To copy to clipboard, switch view to plain text mode 

And i've got;

Qt Code:
  1. S O M E T H I N G .... etc...
To copy to clipboard, switch view to plain text mode 

This is my code;

Qt Code:
  1. for (int j = 0; j < TalkList[i].Script_t.size(); j++)
  2. {
  3. luaTxt << QString("\t\t%1").arg(TalkList[i].Script_t.at(j).toLocal8Bit().constData());
  4. //luaTxt << TalkList[i].Script_t.value();
  5. }
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