Search code examples
stringlistparsingcommentsqstringlist

Removing Comment Character from QStringList


I am parsing the values of a QStringList for a commented line where the commented line starts with the "#" character. How would I go about removing the "#" from what I display to the user?


Solution

  • I just figured out how to do what I wanted like so:

    columnHeaderList << inputLines.remove("#").split("\t");