In python; strings are not mutable as far as I know. To change a string in python, you would have to create a new object.

Is this the same for QString?

  • 1
    Shouldn't this better be placed at www.stackoverflow.com?
    – s3lph
    Dec 1, 2014 at 16:43
  • 1
    ubuntu sdk - based on qtcreator. qt is the central language for gui development on ubuntu.
    – Anon
    Dec 1, 2014 at 16:47
  • 1
    All right, I added the ubuntu-sdk tag to make it more clear.
    – s3lph
    Dec 1, 2014 at 16:52
  • Still think this is better suited to SO, since QStrings being immutable or not has nothing to do with Ubuntu, no more than Java (or Python) Strings being immutable or not.
    – muru
    Dec 1, 2014 at 16:56
  • 2
    Akiva key phrase being "ubuntu related". And QML is not the same as Qt. One can make a case for a question about a function used for UI being on-topic, but how can you use that to justify this? @AhtiKomu at any rate, can you post that as an answer, so we can be done with this question?
    – muru
    Dec 1, 2014 at 18:55

1 Answer 1


As can be seen in the QString documentation, QString is a mutable object.

Not the answer you're looking for? Browse other questions tagged .