View Full Version : how to create folder in root directory using QT
iswaryasenthilkumar
24th February 2015, 13:26
Am using QT with Linux
i can able to create folder in home directory .but i dont knw how to create folder in root directory in Linux using QT
can any one give me suggestion for this:confused:
Thanks in Advance:)
jefftee
24th February 2015, 16:21
Only the root user can write to the root directory ("/") and this is not a Qt limitation at all. There are many ways to get around this, all of which are bad ideas for your Qt application to adopt.
IMHO, rather than write data to a new directory based off the root, you should use the standard locations that each OS identifies are where your application should write transient or permanent files...
Take a look at the QStandardPaths class and use a platform independent method of determining where your app should place its temporary or permanent files.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.