Qt-based store management system (login, registration, addition, deletion, modification, and checking of cargo information and employee information)

Qt-based store management system (login, registration, addition, deletion, modification, and checking of cargo information and employee information)

What I use here is just some simple layouts and the use of databases. This time I use the QSQLITE database, which you can use directly.
First of all: if you want to learn database based on this project, you might as well have a look at my other blogs. I believe that what you wrote must be better than my garbage system:
database link
SQL statement
SQL table model
simple registration and login

I just talk about some of the problems I encountered in the process of writing for your reference:
1. At first I thought that every time I call the database, I have to reopen it... But in fact, like opening a file, it does not close itself after opening. Then it won’t close.
2. When connecting to the database, you must pay attention to the right place. For the first time, I have been unable to connect to the database because of putting it under the constructor. It took a long time to find out...
3. In fact, many of them are repetitive knowledge points, but in the process of writing, because the SQL statement is included by "", it will not report an error if it is written incorrectly... You have to look carefully.

Code download link: store management system

Guess you like

Origin blog.csdn.net/m0_50210478/article/details/108283074