Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Access files in UWP application
After efforts to create and write to a file in the qt UWP app, I was able to do so by using QStandardPaths
But the path where the file was created is created when the app is installed and there until the app is uninstall..
The code is
auto path = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation);
This is the path i got:
I need access to the files in an existing location before the application was installed, and that the user can put files in a normal folder such as c:\
@Rivka-Cohen Did you read the link I gave you in your other thread (https://docs.microsoft.com/en-us/windows/uwp/files/file-access-permissions)? This is nothing related to Qt, this is how UWP handles file access.
In the link I gave you you will find:
"Accessing additional locations
In addition to the default locations, an app can access additional files and folders by declaring capabilities in the app manifest (see App capability declarations), or by calling a file picker to let the user pick files and folders for the app to access (see Open files and folders with a picker)."
You're directing me ...
But I can not do it in QT
I need a specific example of QT
@Rivka-Cohen I can't give you specific examples as I don't have any. You need to declare capabilities as explained in the link. How to do so should be described somewhere in Microsoft documentation. I think it is described here: https://docs.microsoft.com/de-de/windows/uwp/packaging/app-capability-declarations
Thanks for the help
But it did not work for me :(
It's probably part of the solution, but I think I'm missing something else