Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-13075

Lack useful functions in QFile class.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.6.3
    • Core: I/O
    • None

    Description

      I still wonder why Python has better, easier and more powerfull standard library than C++ libraries. Qt library should be better than Python library, but some times it isn't. In QFile lack following functions, which are handful, and exists in Python library:

      1. fileName - return filename extracted from file path (i.e. for "./dir/filename.ext" should return "filename.ext")
      2. extension - return filename extension (i.e. for "./dir/filename.ext" should return "ext")
      3. baseName - return filename without extension (i.e. for "./dir/filename.ext" should return "filename")
      4. path - return path to file (i.e. for "./dir/filename.ext" should return "./dir")

      Extract this strings from file path it isn't challange but it happen very often, so I think they should be in QFile just for clearer programming.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            earthdomain Earth Domain (Inactive)
            jacek Jacek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes