D
D
DenisPy132018-02-18 01:25:36
Python
DenisPy13, 2018-02-18 01:25:36

How can I make sure that all values ​​are saved in a Python \ PyQt program?

How can I make sure that all values ​​are saved in a Python \ PyQt program?
For example, it is necessary that after the program is closed, the file is saved so that it is not opened again 20 times)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tsarevfs, 2018-02-18
@DenisPy13

QSettings is a great option for saving settings. Including the path to the last open file can be written there. By default, on Windows, they write to the registry, and under linux, to the ini file that is created in ~/.config.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question