Important: Please read the Qt Code of Conduct -

QStandardPaths::AppDataLocation returns only \u0011 under FreeBSD

  • According to documentation of QStandardPaths its AppDataLocation should resolve to either of


    under Linux. I was expecting that under FreeBSD it would resolve to something similar.
    But all I am getting back is a Unicode symbol \u0011

    QString defpath = "";
    defpath.append(QStandardPaths::AppDataLocation); // this is where defpath == \u0011

    Am I misusing the class/member or is its implementation broken under FreeBSD?

  • QStandardPaths::AppDataLocation is an enumerator value, so:


    is actually saying: append an integer to the string.

    I think you want to do something like this instead:





  • Who in their twisted mind?.. Oh, same old.

Log in to reply