Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Not able to access registrty beyond a certain level, does it need admin rights? If yes, how to do it?
Qt 6.12 LTS is out! See what's new in the release blog

Not able to access registrty beyond a certain level, does it need admin rights? If yes, how to do it?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qsettingswindowsregistry
2 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tusharh
    wrote on last edited by
    #1

    I'm trying to access this location in windows registry - "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\MySampleTask".

    I'm able to reach till & fetch value till - "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule"

    QSettings currVersionKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Schedule\\",QSettings::NativeFormat);
    QStringList keylist = currVersionKey.childGroups();
    bool bStatus = keylist .contains("TaskCache");
    if(bStatus )
    {
        QVariant taskCache = currVersionKey.property("TaskCache"); // RETURNS NULL
    }
    

    How to access remaining folder i.e. "TaskCache\Tree\MySampleTask" ? Is there any way? By elevating to admin rights?

    Thanks in advance.

    the_T 1 Reply Last reply
    0
    • T Tusharh

      I'm trying to access this location in windows registry - "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\MySampleTask".

      I'm able to reach till & fetch value till - "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule"

      QSettings currVersionKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Schedule\\",QSettings::NativeFormat);
      QStringList keylist = currVersionKey.childGroups();
      bool bStatus = keylist .contains("TaskCache");
      if(bStatus )
      {
          QVariant taskCache = currVersionKey.property("TaskCache"); // RETURNS NULL
      }
      

      How to access remaining folder i.e. "TaskCache\Tree\MySampleTask" ? Is there any way? By elevating to admin rights?

      Thanks in advance.

      the_T Offline
      the_T Offline
      the_
      wrote on last edited by
      #2

      @Tusharh
      If you want the value of the registry entry "TaskCache" you should use QSettings::value(QString key) QObject::property(QString name) gives you the property of your QSettings object

      -- No support in PM --

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved