Script_t is QStringList and it compiles on my VS2010.
Script_t is QStringList and it compiles on my VS2010.
Wysota is right , toPlainText() returns QString and not QStringList. So access your each value ,split that string into a stringlist..
So It's been a few days since I've got this problem, and since I'm just 17 years old, and just 2 weeks with C++ and Qt, I'm just learning.
What's the best way to parse each line of QTextEdit into a QStringList, I really need this in order to add 2 tabs to the beginning of every line of the file.
The most basic approach I can think of is:
Qt Code:
To copy to clipboard, switch view to plain text mode
However that's probably not the best possible way. It would be much better (albeit more complicated) to use QTextDocument API.
Jonathan Maen (2nd February 2012)
Bookmarks