PDA

View Full Version : What replaces QString::findRev() in QT 4



iamjayanth
22nd April 2009, 06:38
Hi ,

I am learning QT 4 . My requirement is to parse only the filename from absolute filepath. I used findRev() in QT 3 to find the last occurance of '/' then parse it from there. But there is no find Rev in QT 4. What replaces findRev in QT 4. Is there any better method to parse a string in QT 4.


Jayanth.S

spirit
22nd April 2009, 06:45
take a look at QString::lastIndexOf, QString::section.