What if you do
str
= QString("file1\nfile2\nfile3");
str = QString("file1\nfile2\nfile3");
To copy to clipboard, switch view to plain text mode
?
I'm not sure, but the behaviour might be different from
str = "file1\nfile2\nfile3";
str = "file1\nfile2\nfile3";
To copy to clipboard, switch view to plain text mode
In the 2nd case the = operator is used because you assign str a value that it const char *. When this is done some conversions are done (see doc on QString). I think you should try to call QString explicitly.
Bookmarks