Want to save drop down value to window setting so that i ready it on next run.
-
Want to save drop down value to window setting so that i ready it on next run.
as per the application flow 2nd launch of application must be with last selected drop down value .on second run this vale must be selected value of this combo.
-
You can use QSettings for that.
-
[quote author="sierdzio" date="1349334108"]You can use QSettings for that.[/quote]
Yes and "this simple example of QSettings usage":http://qt-project.org/wiki/How_to_Use_QSettings might be useful :)
-
yes this is working for me,thank you dear. 1 more question can these saved setting possible read at qml side directly.
any e.g -
No, QML has no direct way to work with QSettings. However, you can easily expose an object from C++ to your QML scene that provides the value to it as a property.
-
[quote author="vivekmalik2466" date="1349337857"]yes this is working for me,thank you dear. 1 more question can these saved setting possible read at qml side directly.
any e.g [/quote]You bind "QML to C++ code":http://doc.qt.digia.com/4.7-snapshot/qtbinding.html and use QSettings.