PDA

View Full Version : How to remove these characters from(",/,\,|,*,>) from filename?



merry
10th July 2008, 14:05
Hi all

Working on Qt4.3.4 on Windows Operating System.
Can anybody tells me how can i remove the following charactrs from the filename (",/,\,>,<,*,?,:,|) from the filename and my filename is of QString type.

munna
10th July 2008, 14:09
QString remove (http://doc.trolltech.com/4.4/qstring.html#remove-6) should help.

merry
10th July 2008, 14:15
Thanks for the reply

In QString::Remove these characters should be taken as QChar or QRegExp.

merry
11th July 2008, 09:12
Hi all

Can anybody knows how to compare Key AScii values or say Character ASCII values using Qt4.3