for a file with the following format:
[Desktop Entry]
Exec="/home/paschim/netbeans-4.1/bin/netbeans"
Terminal=0
Type=Application
Icon=/home/paschim/netbeans-4.1/nb4.1/netbeans.png
Categories=Application;Development;Java;IDE;
Name=NetBeans 4.1
Comment=Launches NetBeans IDE 4.1
Name[ja]=NetBeans 4.1
Comment[ja]=Launches NetBeans IDE 4.1
Name[zh]=NetBeans 4.1
Comment[zh]=Launches NetBeans IDE 4.1
[Desktop Entry]
Exec="/home/paschim/netbeans-4.1/bin/netbeans"
Terminal=0
Type=Application
Icon=/home/paschim/netbeans-4.1/nb4.1/netbeans.png
Categories=Application;Development;Java;IDE;
Name=NetBeans 4.1
Comment=Launches NetBeans IDE 4.1
Name[ja]=NetBeans 4.1
Comment[ja]=Launches NetBeans IDE 4.1
Name[zh]=NetBeans 4.1
Comment[zh]=Launches NetBeans IDE 4.1
To copy to clipboard, switch view to plain text mode
The above is a .desktop file for Netbeans installed on my Linux/KDE distro.
For files with such formats what is the best way to access them: using QSettings or Qfile and Qtextstream?
For which type of files should one choose the either of the above methods? will be helpful if you could also highlight the tradeoffs involved.
Can I read a file with QSettings, which has been hand coded and NOT written by any program before....Please give me an example of how to read any value from the above file.
Thanks
Nupul
Bookmarks