Generally, how to save application data?
In a binary file, or a database? In other words, which structure can I use?
If there is a database table, how can I select data from it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For simple applications settings, use
QSettings– it provides persistent platform-independent application settings.For more complex data, you might want to have a look at
QSqlDatabase, several databases are supported, including SQLite. To select data or, more generally, to make an SQL query, have a look atQSqlQuery.