Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4270366
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:17:46+00:00 2026-05-21T07:17:46+00:00

A Registry root of an application can be a tree-like structure with folders and

  • 0

A Registry root of an application can be a tree-like structure with “folders” and “nodes”. A pFile on a mac can have inner dictionaries which are like folders. Whatever I do from QSettings is flat, even if I use a group. Is there an API that’ll let me “create a folder” that will translate in windows to a registry ‘folder’, and a new Dictionary on a pfile?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T07:17:47+00:00Added an answer on May 21, 2026 at 7:17 am

    There no publish way to do what you describe. But you can just store Qt container types like QList and QMap in QSettings. The resulting registry or plist won’t be exactly what you want but it serves what you want to accomplish. Unless, of course, you want the registry or plist to be compatible with other applications than arrange their settings that way.

    Edit

    Actually, after some test, on Mac QSettings do use plist natives for standard types. You just need to put them in QVariant. For example:

    QList<QVariant> array;
    array << 1 << 2 << "3";
    QMap<QString, QVariant> list;
    list["one"] = 1;
    list["two"] = "2";
    list["3"] = array;
    QSettings().setValue("somelist", list);
    

    The above code produces the following plist entry:

    <key>somelist</key>
    <dict>
        <key>3</key>
        <array>
            <array>
                <integer>1</integer>
                <integer>2</integer>
                <string>3</string>
            </array>
        </array>
        <key>one</key>
        <integer>1</integer>
        <key>two</key>
        <string>2</string>
    </dict>
    

    So as long you convert values to QVariant, QSettings seem to try to use native types in plist. I don’t know enough about Windows registry to know if it does the same there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If someone installs my java application on their computer (windows/linux/mac), how can I make
I have a WPF assembly in which I would like to embed five icons
We have J2EE application built using Hibernate and struts. We have RMI registry based
I can add a new item for the folders right click menu using registry:
I have an application that needs to delete a subkey tree and readd the
I have an online registry of professionals with about 300 members. These are smart
Take the Winlogon registry section, I would like PowerShell to display the Data value
I'm reading a registry value like this: char mydata[2048]; DWORD dataLength = sizeof(mydata); DWORD
I am modifying the registry value found at: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects. For my purposes it can
I have a simple NSIS script with a directory page, where the user can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.