Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
How to find Desktop path
@ QDesktopServices::displayName(QDesktopServices::DesktopLocation) @
an empty QString return
I think you need: @QDesktopServices::storageLocation()@
If that one returns an empty string for 'QDesktopServices::DesktopLocation', then it means that Qt couldn't determine the Desktop path.
Thanks,MuldeR Now its work
QStandardPaths::displayName( QStandardPaths::DesktopLocation );
QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)