How to save application data

Generally, how to save application data?

In a binary file or database? In other words, what structure can I use?

If there is a database table, how can I select data from it?

+4
source share
1 answer

For simple application settings, use QSettings - it provides constant platform-independent application settings.

For more complex data, you can take a look at QSqlDatabase , several databases are supported, including SQLite. To select data or, more generally, execute an SQL query, see QSqlQuery .

+2
source

Source: https://habr.com/ru/post/1398546/


All Articles