Abrahamyan Samvel Abrahamyan Samvel - 1 year ago 196
C++ Question

QString character erase function

QString line = "example string";

Now I want to erase the space between 'example' and 'string' so that I get a string like this "examplestring". Is there a function in Qt which erases a character under the given index or should I write this function myself ?

Answer Source
line = line.remove(index,1);

see the documentation

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download