[Qt-interest] QSettings issue

Konstantin Wirz kwirz at wessel-hydraulik.de
Mon Jun 7 07:13:59 CEST 2010


Am 07.06.2010 06:14, schrieb Yuvraj:
 > Hi ,
 >
 > I am using QSettings to store user name and password and retrieving back.
 >
 > QSettings settings;
 >
 > settings.setValue("username", "India");
 > settings.setValue("password","xyz");
 >
 > settings.Value("username");
 > settings.Value("password");
 >
 > I am not getting username and password back.
 >
 >
 > *Note: Not a Admin user.*
 >
 >
 > Thanks
 >
 > Yuvaraj
 >
 >
 >
 > _______________________________________________
 > Qt-interest mailing list
 > Qt-interest at trolltech.com
 > http://lists.trolltech.com/mailman/listinfo/qt-interest

Hi

QSettings::value returns an instance of QVariant.

settings.value("username").toString();

-- 
Selbstverständlich stehen wir Ihnen für weitere Fragen und Informationen 
jederzeit gern zur Verfügung.

Mit freundlichen Grüßen

Konstantin Wirz
Entwicklung

WESSEL-HYDRAULIK GmbH
Telefon +49 4421 9911 DW
Telefax +49 4421 9911 FX
Email  	kwirz at wessel-hydraulik.de


· WESSEL-HYDRAULIK GmbH · Liebigstraße 8 · D-26389 Wilhelmshaven · 
Telefon +49 4421 9911 0 ·
Amtsgericht Oldenburg HRB 130165 · GF Dr. Ing Holger Jongebloed, 
Dipl.-Ing. Hermann Rothert ·
www.wessel-hydraulik.de · info at wessel-hydraulik.de ·




More information about the Qt-interest-old mailing list