Skip to content
  • 1 Votes
    2 Posts
    133 Views
    SGaistS
    Hi, There's two things you can do to make that happen: check the bug report system to see if there's already something about this issue (and if not please create a ticket) submit a patch since you already have the solution at hand :-)
  • 0 Votes
    20 Posts
    4k Views
    JonBJ
    @swankster :) Like I said, just build the (correct, including whatever quoting, and if you are OK on possible SQL injection attacks!) string and pass that without using binding, for this query.
  • 0 Votes
    9 Posts
    6k Views
    aha_1980A
    @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