From Fedora Project Wiki

Standard Directories

Summary

How-to access some standard system directories in KDE.

How-to

home directory

KUrl(KUser().homeDir())

XDG config directory

  • ~/.config/

KStandardDirs().localxdgconfdir()