Results 1 to 2 of 2

Thread: What replaces QString::findRev() in QT 4

  1. #1
    Join Date
    Oct 2008
    Location
    Thodupuzha, a small town in kerala
    Posts
    31
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default What replaces QString::findRev() in QT 4

    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

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: What replaces QString::findRev() in QT 4

    take a look at QString::lastIndexOf, QString::section.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.