Follow this step-by-step procedure to create a database in SQLite:
- Let's create an application based on the Dialog without Buttons template.
- Add two QLabel widgets, one QLineEdit widget, and one QPushButton widget to the form by dragging and dropping two Label widget, one Line Edit widget, and a Push Button widget on the form.
- Set the text property of the first Label widget to Enter database name.
- Delete the text property of the second Label widget because this is established.
- Set the objectName property of the Line Edit widget to lineEditDBName.
- Set the objectName property of the Push Button widget to pushButtonCreateDB.
- Set the objectName property of the second Label widget to labelResponse.
- Save the application by name ...