PyQt5 Tutorial | How to save your application settings with QSettings class

preview_player
Показать описание
In this tutorial, I am going to show you how to save your #PyQt5 application settings with #QSettings class.

When you create a desktop application, normally you want to have a "preference" option allowing users to save application settings such as window size, last closed position, font style, background color, etc, so next time when the user re-open the application, all the configurations will resume to the last session.

I will be using Windows 10 for the demonstration. The settings I want to save are window size and last closed position.

Buy Me a Coffee? Your support is much appreciated!
-------------------------------------------------------------------------------------
🔑 Venmo: @Jie-Jenn

Support my channel so I can continue making free contents
---------------------------------------------------------------------------------------------------------------

#PythonTutorial #PythonGUI #QSettings
Рекомендации по теме
Комментарии
Автор

Tks a lot from Brazil. <3
note: in the source code the func resize() is like "reisze()"

Pedroallesss
Автор

Thanks Jie Jenn, This is a very good video. On the other hand, how do I save the entries over those input in the QLineEdit and restore them once relaunching the application?

stallonetht