QFile und Path Variablen
Verfasst: 26. März 2007 13:20
Hallo Qt Freunde,
Ich versuche mit file.open("%%APPDATA%%\\xyz\\xyz.xml") eine Datei zu öffnen. Leider geht das nur, wenn ich den vollen Pfad eingebe,
also file.open("C:\\C:\Documents and Settings\\user01\\Application Data\\xyz\\xyz.xml"). Kann ich solch eine Path Variable wie %APPDATA% mit QFile gar nicht verwenden ?
Ich versuche mit file.open("%%APPDATA%%\\xyz\\xyz.xml") eine Datei zu öffnen. Leider geht das nur, wenn ich den vollen Pfad eingebe,
also file.open("C:\\C:\Documents and Settings\\user01\\Application Data\\xyz\\xyz.xml"). Kann ich solch eine Path Variable wie %APPDATA% mit QFile gar nicht verwenden ?