P
P
PMoysak2018-05-07 10:05:51
Qt
PMoysak, 2018-05-07 10:05:51

(Qt,QML) How to keep the background color when relaunching the application?

Good afternoon
I am writing a small application and the question is how to make the color (selected using QColorDialog) remain the same when the application is restarted?
White background -> Red background -> Closed the application -> Opened and see a red background

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2018-05-07
@PMoysak

Either QSettings ( https://doc.qt.io/qt-5/qsettings.html) or the same from QML ( https://doc.qt.io/qt-5/qml-qt-labs-settings- settin... The second one is less reliable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question