Top "Qdir" questions

A QDir is a class from the Qt toolkit which provides access to directory structures and their contents.

Get relative path from a file in Qt

I am trying to get the relative path from files that I would like to write. Here a situation: I …

c++ qt qtcore qdir qfileinfo
QDir.setNameFilter how to show only files with specific extensions?

setNameFilters isn't working as I would expect, so if anyone can explain if I'm using it incorrectly, or if maybe …

c++ qt filter qdir
How to concatenate an absolute path and relative path with QDir?

I have a relative path and absolute path that look something like this: Absolute: /tmp/somedir Relative: anotherdir/file.txt …

qt filenames relative-path absolute-path qdir
Fail to rename a file in Qt with QDir::rename()

I'm using QDir::rename() to rename a temporary file. here's my code: // change the temporary filename void save::finish() { QString …

file qt text rename qdir