How to create SQlite Database by Qt
Today, I would like to share with you the relevant knowledge of how Qt creates a SQlite database. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
Qt creates SQlite database
Void Widget::initDB () {/ / create and open the database QSqlDatabase database; database = QSqlDatabase::addDatabase ("QSQLITE"); / / qDebug ()