@emp1953 said in How to remove quotes and eol characters from QString?: There is still the annoying little "square" shape after every item in the QListWidget. QFile::readLine() behaves different on Windows and Linux, your can read that in the docu. On Linux it assumes \n line endings, on Windows \r\n ones, which it replaces with \n. Your file is none of these, it has mixed endings. If you want to use it in Linux, you have to normalize the line endings first. Otherwise readLine() will not do what you expect and every following procedure will fail. The square bracket you see is probably the \r char, which cannot be displayed otherwise. From within the Qt Creator development environment it does in fact compile without warnings and outputs an executable. But not the code you posted above. This code is invalid and no compiler will accept it. Double check what you are doing. Regards