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. Get and set values in windows registry
Forum Updated to NodeBB v4.3 + New Features

Get and set values in windows registry

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 4.7k Views 2 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.
  • ivanicyI Offline
    ivanicyI Offline
    ivanicy
    wrote on last edited by
    #1

    Hello!!

    I am trying to modify the windows registry. I want to set a couple of things of a video codec.

    [HKEY_CURRENT_USER\Software\GNU\x264vfw64]
    "preset"="medium"
    "tuning"=""
    

    This is part of a .reg file that I have to set the codec properties. I want to modify this properties in my application. How can I read and modify the "preset" and "tuning" values?

    Thank you very much!

    raven-worxR 1 Reply Last reply
    0
    • ivanicyI ivanicy

      Hello!!

      I am trying to modify the windows registry. I want to set a couple of things of a video codec.

      [HKEY_CURRENT_USER\Software\GNU\x264vfw64]
      "preset"="medium"
      "tuning"=""
      

      This is part of a .reg file that I have to set the codec properties. I want to modify this properties in my application. How can I read and modify the "preset" and "tuning" values?

      Thank you very much!

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @ivanicy
      use QSettings

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      ivanicyI 1 Reply Last reply
      4
      • raven-worxR raven-worx

        @ivanicy
        use QSettings

        ivanicyI Offline
        ivanicyI Offline
        ivanicy
        wrote on last edited by
        #3

        @raven-worx Yes, I am looking for examples of this, but I don't know how to use it :(

        raven-worxR 1 Reply Last reply
        0
        • ivanicyI ivanicy

          @raven-worx Yes, I am looking for examples of this, but I don't know how to use it :(

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @ivanicy
          if even the linked example isn't enough i am wondering what you are after...

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          5
          • Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #5

            @ivanicy what about this? spoiler alert: not teasted, just a suggestion. Please back up your registry!

            QSettings settings("HKEY_CURRENT_USER\\Software\\GNU\\x264vfw64",
                               QSettings::NativeFormat);
            settings.setValue("HKEY_CURRENT_USER\\Software\\GNU\\x264vfw64\\preset", "medium");
            

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            aha_1980A 1 Reply Last reply
            1
            • Pablo J. RoginaP Pablo J. Rogina

              @ivanicy what about this? spoiler alert: not teasted, just a suggestion. Please back up your registry!

              QSettings settings("HKEY_CURRENT_USER\\Software\\GNU\\x264vfw64",
                                 QSettings::NativeFormat);
              settings.setValue("HKEY_CURRENT_USER\\Software\\GNU\\x264vfw64\\preset", "medium");
              
              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Pablo-J.-Rogina said in Get and set values in windows registry:

              @ivanicy what about this? spoiler alert: not teasted, just a suggestion. Please back up your registry!

              If I get the example linked by @raven-worx correctly, it should rather be:

              QSettings settings("HKEY_CURRENT_USER\\Software\\GNU\\x264vfw64",
                                 QSettings::NativeFormat);
              settings.setValue("preset", "medium");
              

              Disclaimer: not compiled, not tested, not even a Windows in sight ;)

              Qt has to stay free or it will die.

              raven-worxR 1 Reply Last reply
              4
              • aha_1980A aha_1980

                @Pablo-J.-Rogina said in Get and set values in windows registry:

                @ivanicy what about this? spoiler alert: not teasted, just a suggestion. Please back up your registry!

                If I get the example linked by @raven-worx correctly, it should rather be:

                QSettings settings("HKEY_CURRENT_USER\\Software\\GNU\\x264vfw64",
                                   QSettings::NativeFormat);
                settings.setValue("preset", "medium");
                

                Disclaimer: not compiled, not tested, not even a Windows in sight ;)

                raven-worxR Offline
                raven-worxR Offline
                raven-worx
                Moderators
                wrote on last edited by
                #7

                @aha_1980 said in Get and set values in windows registry:

                If I get the example linked by @raven-worx correctly, it should rather be:

                correct.

                --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                If you have a question please use the forum so others can benefit from the solution in the future

                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