Quote Originally Posted by tinsuke View Post
One intermediary solution was to use a manifest file with the fields you showed.
Well, unfortunately the manifest file thing did not work. Maybe I did something wrong though. My manifest file content is as follows:

Qt Code:
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  3. <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="tagainijisho" type="win32"/>
  4. <description>A free Japanese dictionary and study assistant</description>
  5. <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
  6. <security>
  7. <requestedPrivileges>
  8. <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
  9. </requestedPrivileges>
  10. </security>
  11. </trustInfo>
  12. </assembly>
To copy to clipboard, switch view to plain text mode 

To include it, I just added the following line into the .rc file:

Qt Code:
  1. CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "tagainijisho.exe.manifest"
To copy to clipboard, switch view to plain text mode 

Which is processed by windres through qmake as my project file includes this line:

Qt Code:
  1. RC_FILE = tagainijisho.rc
To copy to clipboard, switch view to plain text mode 

Everything is processed by mingw32 under Linux (cross-compilation environment).

The RC file also includes the program icon which is visible, so I think it is correctly used here. But maybe I did something wrong here. Can windows experts give me some comments?

Quote Originally Posted by tinsuke View Post
The actual solution is to save the database at the user folder, which, by the way, enables using one database per user.
I think this is clearly not the solution here. These databases are read-only - no user is ever going to change them, so there is no reason for them to have their own copy. Moreover they are rather large (around 100Mb total). The user also has his settings stored into a private database, which is stored in the directory returned by QDesktopServices::storageLocation(QDesktopServices :: DataLocation). Here things are working perfectly, as the storage is done in the user profile and Vista does not abusively get into the way.