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
Thanks in Advance
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
Thanks in Advance
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.
iswaryasenthilkumar (25th February 2015)
Bookmarks