I need to sort a list of files based on filename. These files are gathered from a QDirIterator. I am using the solution provided here. TL;DR - use st ...
I need to sort a list of files based on filename. These files are gathered from a QDirIterator. I am using the solution provided here. TL;DR - use st ...
I want to use isWritable() from QFileInfo. According to the docs, you have to somehow set qt_ntfs_permission_lookup to 1 to get a meaningful result on ...
I wanted to specify from a path, whether the item is a file or a folder. How can I implement such function which takes a path (QString based input) an ...
When a file is changed, the signal should fire 1 time, but for me it works several times. In setings function, I request size and it prints After ...
I am scanning folder size like this: This appears to work fine. However, I noticed that a folder containing Windows shortcuts (.lnk) is returning ...
I have a QVector, which should store filepaths, like But instead of storing it in the above order, it's storing like How can I store the image f ...
Is it possible to change contents of symlink using Qt? Static QFile::link and non-static one both return false if linkname filepath is already exist. ...
I am a beginner in Qt, one part of my project is moving a existing file to another existing directory? Can someone gives me a specific example? I am n ...
I need to change the owner and group of a file under Linux using Qt 5.7 /C++. I found the QFileInfo::ownerID and QFileInfo::groupID getters, but there ...
I'm writing log files and would like to set a size limit of 10 Mo. I was thinking of setting a QTimer triggering every X minutes/hours QFileInfo::ref ...
I'm trying to allow drag-and-drop of .exe unit test files into a QMainWindow. My dragEnterEvent looks like this: however the isExecutable() functio ...
I am developing an Application for MAC OS X. In which I have to find files in folder. Problem is that I want to give comfort, to user, to search a fil ...
I am having issues with QDir losing Non-Ascii characters from my file names. I have files with names like testingöäüß.txt or exampleΦ.shp and when t ...
I am trying to make a simple widget which contains a lineedit which shows the file name and a button to open a filedialog. and now I want to check if ...
I am porting an application from Glib to Qt. I do have a lot of API specific to Gtk, but it's difficult to find the equivalent variants in Qt. I am l ...
Normally you can get last modified date easily with QFileInfo::lastModified(). However this doesn't work when a file inside Qt's resource system is us ...
I need to copy the full filepath, without filename, into a QString from QFileDialog below. ...
I am trying to get the relative path from files that I would like to write. Here a situation: I save a conf file in D:\confs\conf.txt. I have in my p ...