Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt class for handling file paths [duplicate]

Tags:

c++

qt

Possible Duplicate:
Qt equivalent of PathAppend?

Is there a class that handles file paths in Qt? Particularly I'm looking for something like .NET's Path.Combine.

I know there's one in boost::filesystem but I was wondering if there's one in Qt.

like image 726
Idan K Avatar asked Apr 11 '09 17:04

Idan K


1 Answers

There is QDir which might be of help (see QDir::relativeFilePath and QDir::canonicalPath and others).

Quoting from QDir doc:

A QDir is used to manipulate path names, access information regarding paths and files, and manipulate the underlying file system.

like image 158
MartinStettner Avatar answered Oct 21 '22 09:10

MartinStettner