[PyKDE] QSettings problem
Phil Thompson
phil at riverbankcomputing.co.uk
Mon Apr 19 07:07:00 BST 2004
On Sunday 18 April 2004 8:55 pm, Vicent Mas wrote:
> Hi,
> I'm trying to use QSettings.setPath method for configuring my application
> but it seems to be completely ignored. For instance, this simple script:
>
> --------------------------------------------------------------
> #!/usr/bin/env python
>
> from qt import *
>
> c = QSettings()
> c.setPath('MyCompany.com', 'MyApplication')
> c.writeEntry('/Look/currentStyle', 'Platinum')
> --------------------------------------------------------------
What does writeEntry() return?
> creates the file $HOME/.qt/lookrc with content:
> [General]
> CurrentStyle=Windows
>
> If I add a search path with insertSearchPath, let's say $HOME/test, then I
> get a $HOME/test/lookrc file, with the same content as before
Are you sure? "CurrentStyle" != "currentStyle".
> I've revised this mailing list archives looking for a solution, but with
> no success. What I'm doing wrong?
>
> Thanks in advance for your help.
Most likely the user doesn't have permissions on the global settings.
Phil
More information about the PyQt
mailing list