Results 1 to 7 of 7

Thread: Where are these settings stored?

  1. #1
    Join Date
    Jul 2007
    Posts
    12
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Where are these settings stored?

    For instance,

    void MailClient::writeSettings()
    {
    QSettings settings("Software Inc.", "Mail Client");

    settings.beginGroup("mainWindow");
    settings.setValue("size", size());
    settings.setValue("mainsplitter", splitter_2->saveState());
    settings.setValue("rightsplitter", splitter->saveState());
    settings.endGroup();
    }

    In Microsoft Windows, we know these settings are stored in the registry, but in Linux, for example in Fedora 6, where are these settings stored on earth? Does anyone know it? Thanks ahead

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Where are these settings stored?

    J-P Nurmi

  3. #3
    Join Date
    Jul 2007
    Posts
    12
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Where are these settings stored?

    "QSettings - Locations Where Application Settings Are Stored"

    Hi, thank you, but I can't find it in the class QSetings, I can't find it in my Fedora 6 - I use find and grep to search my hard disk for at least 3 times.

    And, what do you mean "Locations"

    Please ...

  4. #4
    Join Date
    Jul 2007
    Posts
    12
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Where are these settings stored?

    I mean if Qt "quietely" hides these information into some .ini file, like /etc/xxx.ini, does it? If so, where is it? Thanks anyway!

  5. #5
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Where are these settings stored?

    Quote Originally Posted by adorp View Post
    I mean if Qt "quietely" hides these information into some .ini file, like /etc/xxx.ini, does it? If so, where is it? Thanks anyway!
    Did you followed the link? As explained there the config files are placed within your home directory... Typically, if you're user account is, for instance, "coder" then the files you're looking for are in "/home/coder/.config/Software Inc/Mail Client.ini" what makes them difficult to spot at first is that a name starting with a dot is considered as "hidden" i.e. it won't appear in your browser unless you specify that you want to "show hidden files". Even ls won't show them unless you use "ls -A"...
    Current Qt projects : QCodeEdit, RotiDeCode

  6. The following user says thank you to fullmetalcoder for this useful post:

    adorp (24th July 2007)

  7. #6
    Join Date
    Jul 2007
    Posts
    12
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Where are these settings stored?

    Bravo! Bravo!

    But I must point out that link shows me "Not Acceptable", so

    The toughest coder I've ever seen, thank you from heart! Please help me solve another problem I posted for a whole day but fail to get the satisfactory answer.

    -------------------------------------------

    "Problem about staying on taskbar:"

    How can I make an Application whose interface is a dialog appear in the taskbar under Linux, for example Fedora 6?

    Issue and Phenomenon:
    1. when I use Qt4 write the program with QMainWindow and after I start up the program , I can find it on taskbar;

    2. But If I write such a program with QDialog as its main interface, then as I run it, it seems nomral except that it can't stay on task bar. So, why?

    3. If just only writing codes, how to implement it?

    4. And if using Qt Designer, how to implement it then?

  8. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Where are these settings stored?

    Quote Originally Posted by adorp View Post
    But I must point out that link shows me "Not Acceptable"
    There's nothing wrong with the link posted by jpn.

    Quote Originally Posted by adorp View Post
    "Problem about staying on taskbar:"

    How can I make an Application whose interface is a dialog appear in the taskbar under Linux, for example Fedora 6?
    [...]
    Please, don't post the same question more than once and don't post unrelated questions in the same thread.

Similar Threads

  1. Stored procedure and ODBC
    By filya in forum Qt Programming
    Replies: 2
    Last Post: 15th March 2010, 08:40
  2. no record returns from stored procedure
    By mandal in forum Qt Programming
    Replies: 0
    Last Post: 26th April 2007, 14:45
  3. MySql Stored Procedures Woes
    By stevey in forum Qt Programming
    Replies: 9
    Last Post: 19th October 2006, 12:58
  4. Tab Order Settings in a QDialog widgets
    By vinnu in forum Qt Programming
    Replies: 10
    Last Post: 21st September 2006, 16:25
  5. Replies: 4
    Last Post: 1st February 2006, 17: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.