Qt 6.11 is out! See what's new in the release
blog
Extracting information from file path
-
Use QFileInfo or QDir. For example:
QFile someFile; QFileInfo info(someFile.fileName()); QString xmlDir = info.absolutePath(); // xmlDir == "c:/external/xml". -
Use QFileInfo or QDir. For example:
QFile someFile; QFileInfo info(someFile.fileName()); QString xmlDir = info.absolutePath(); // xmlDir == "c:/external/xml". -
You're welcome. Happy coding :-)