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 1105929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:42:45+00:00 2026-05-17T01:42:45+00:00

Does Qt has something like QSettings , but for local scopes? I am seeking

  • 0

Does Qt has something like QSettings, but for local scopes?

I am seeking for a data structure with the same methods, but not specific for APPLICATION.

I mean, I want to construct local (for example, exporting settings) settings from file (xml, for example) and use them in local scope – without polluting global application settings.

Is that possible (with QSettings or some other class)? How should I construct the object then?

  • 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-17T01:42:46+00:00Added an answer on May 17, 2026 at 1:42 am

    You can use

    void QSettings::setPath ( Format format, Scope scope, const QString & path ) 
    

    to set the format (as specified in the doc)

    QSettings::NativeFormat 0 Store the
    settings using the most appropriate
    storage format for the platform. On
    Windows, this means the system
    registry; on Mac OS X, this means the
    CFPreferences API; on Unix, this means
    textual configuration files in INI
    format.

    QSettings::IniFormat 1 Store the
    settings in INI files.

    QSettings::InvalidFormat

    the scope:

    QSettings::UserScope 0 Store settings
    in a location specific to the current
    user (e.g., in the user’s home
    directory).

    QSettings::SystemScope 1 Store
    settings in a global location, so that
    all users on the same machine access
    the same set of settings.

    So if you are on Windows and want to write User-specific settings, you would use the IniFormat and the UserScope values and specify the path where you want to write your settings in the path variable.

    Hope this helps.

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

Sidebar

Related Questions

i want to load a javascript in my C# web browser control. but VS
I'm wondering if anyone knows of a PHP setting that will automatically escape double
What is the most efficient way to check if the current QTP test execution
A web project I'm coding for uses a complex CSV to MySQL converter to
I'm once again looking into the world of tabbed browsing and Sessions. Looking over
I am trying to set the screen brightness from a widget. We know this
private List<T> newList; public List<T> NewList { get{return newList;} set{newList = value;} } I
I am writing a categorie in Xcode, that would extend the current NSDate class.
In our app, customers put in their own unique API credentials for Authorize.Net. So
How do you compare enums that have multiple bits set? I must be missing

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.