Results 1 to 4 of 4

Thread: Where's the ini?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2011
    Posts
    203
    Thanks
    7
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Where's the ini?

    Hi,

    I have the following code:

    Qt Code:
    1. void MyClass::SetDefaultOptions()
    2. {
    3. QSettings Settings(QSettings::IniFormat, QSettings::UserScope, MyCompany", "MyApp");
    4. Settings.setValue("options/dynamicresize", 1);
    5. Settings.setValue("options/width", 480);
    6. Settings.setValue("options/height", 800);
    7. Settings.setValue("options/xcoordinate", 0);
    8. Settings.setValue("options/ycoordinate", 0);
    9. }
    To copy to clipboard, switch view to plain text mode 

    Which gets called in the constructor, but I can't find the ini when I run it. I'm guessing it's supposed to be in the debug/release folder?
    Last edited by Atomic_Sheep; 20th September 2017 at 09:17.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.