Unsolved Generic path to a file
-
Hello, There is a way to assing a particular path to a text file?
For example I want to create a .txt file on the desktop.
and How can I assign the file to be created on the desktop regardless of which PC is running the program that will create it?greetings and thanks
-
U can look at qdesktopservices class in qt documentation
-
@Julian Using
QStandardPaths
.QString path = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
Then go with
QFile
as usual to create the file. -
thanks. There is a class for everything!