Hi everybody.

QT 4.1.3 Win MINGW

I am trying to replace "'"with "\'" but its not working

Have somebody a idea why not?

Don't musst be Don\'t after replacing
Qt Code:
  1. //style = Don't
  2. QString style = ui.add_new_style_le->text();
  3. QString test = style.replace(QString("'"), QString("\'"));
  4. //test = Don't and not Don\'t :crying:
  5. QMessageBox::information(this,"",test);
To copy to clipboard, switch view to plain text mode