[Qt-interest] Registry Virtualization in Windows Vista and QSettings
Anthony Serdyukov
uksus70+qt at gmail.com
Wed Nov 4 08:56:29 CET 2009
Thank you, Constantin, for your reply.
My application has a settings dialog. Some settings should be stored
user-scoped, but several of them are system-wide. Thus, system
administrator should have an opportunity to open the program, go to
the settings dialog and alter several settings to affect all users. At
the same time plain user should also go to this dialog and alter only
user-scoped settings. Therefore, I have to determine whether current
user is permitted to write to the SystemScope, and depending of the
result disable, hide, etc. system-scoped settings.
Thank you, Marco, too.
All right, adding a manifest is the way to disable virtualization for
my application, thanks for the tip. However, this knowledge raises
several another questions.
First, how is it combined with Qt cross-platform development?
Obviously, embedding manifest should be Windows-specific build step.
And the second, is there a strait way to embed an elevation point into
Qt program? Again, seems like it should be Windows-specific code
(#ifdef).
But what about other platforms? As far as I'm concerned, Ubuntu Linux
also has something similar to Windows UAC: it asks for an
administrator credentials when an application tries to perform some
secure operation. Isn't there any "Qute" cross-platform interface for
these tasks?
More information about the Qt-interest-old
mailing list