Results 1 to 6 of 6

Thread: Problem with QSettings

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2013
    Location
    Russia
    Posts
    4
    Thanks
    2
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Problem with QSettings

    Quote Originally Posted by ChrisW67 View Post
    You are using a relative file path to the INI file. Make sure the working directory of the process is what you think it is.
    In Qt 4.8 it works.In Qt5.0 I tried to write
    Qt Code:
    1. QString path = QApplication::applicationDirPath() + "/settings.ini"; QSettings setting(path, QSettings::IniFormat);
    To copy to clipboard, switch view to plain text mode 
    It did't help.

  2. #2
    Join Date
    May 2013
    Location
    Russia
    Posts
    4
    Thanks
    2
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Problem with QSettings

    I solved the promblem. The programm was on a flash card. When I copied it on my computer, QSettings again started to work.

Similar Threads

  1. QSettings unicode problem
    By mgiza in forum Qt Programming
    Replies: 2
    Last Post: 2nd September 2011, 23:01
  2. QSettings problem!
    By 0xl33t in forum Newbie
    Replies: 5
    Last Post: 28th July 2009, 08:15
  3. QSettings problem
    By eleanor in forum Qt Programming
    Replies: 5
    Last Post: 4th May 2009, 14:11
  4. Problem with QSettings
    By arbi in forum Qt Programming
    Replies: 2
    Last Post: 24th September 2008, 08:49
  5. QSettings problem?
    By cyberboy in forum Qt Programming
    Replies: 2
    Last Post: 28th June 2008, 21:14

Tags for this Thread

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.