Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to write at HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE
QtWS25 Last Chance

How to write at HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 7.2k Views
  • 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.
  • M Offline
    M Offline
    maxim.prishchepa
    wrote on last edited by
    #1

    Hi all!
    I need to write some data to HKEY_CURRENT_USER( or HKEY_LOCAL_MACHINE)\SOFTWARE, is Qt has some standard function to do this?
    And how it will work on *nix OS?

    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      You may use "QSettings":http://doc.qt.nokia.com/4.7/qsettings.html for writing to registry.

      Edit: QSettings may be used also for linux.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maxim.prishchepa
        wrote on last edited by
        #3

        Tnx, this is solve my problem.

        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

        1 Reply Last reply
        0
        • A Offline
          A Offline
          aabc
          wrote on last edited by
          #4

          You can also use WIN32 API

          1 Reply Last reply
          0
          • E Offline
            E Offline
            EmoBemo
            wrote on last edited by
            #5

            Beware that on 64 bit Windows if your application is 32 bit the keys will go in HKLM\SOFTWARE\Wow6432Node even if you use QSettings("HKEY_LOCAL_MACHINE\SOFTWARE\Your key");

            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 Extensions
            • Unsolved