You may very well write ur own function for that -
void removeDirtyChars
(QString &input
) {
input.clear();
for(int i=0;i<asciiInput.length();i++)
{
if(asciiInput.at(i) is not between [0-31] // You logic to determine which chars u want
input += asciiInput.at(i);
}
}
void removeDirtyChars(QString &input)
{
QByteArray asciiInput = input.toAscii();
input.clear();
for(int i=0;i<asciiInput.length();i++)
{
if(asciiInput.at(i) is not between [0-31] // You logic to determine which chars u want
input += asciiInput.at(i);
}
}
To copy to clipboard, switch view to plain text mode
Hope u get the logic
Bookmarks