Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QStandardPaths: what is the difference in PathTypes?



  • Hello!

    In the documentation of QStandardPaths for storing something in device mentioned:

    • QStandardPaths::ConfigLocation vs QStandardPaths::GenericConfigLocation - return the same path
    • QStandardPaths::AppLocalDataLocation vs QStandardPaths::AppDataLocation - return the same path

    The question is - What is better to use? What is the difference?
    I've been trying to get a difference but gotten failed. There are the same for every pair member.

    My issue is to storing application data and configuration.


  • Moderators

    They may return different paths on other Operating Systems (for example: Windows has 3 data locations: user, local and roaming). See detailed description here.



  • @sierdzio Thx. I've never been using Windows ... That's why it's curious for me ... In MacOS and mobile it's the same. I've seen this manual that you sent in reply.


Log in to reply