Programming Breaks
Monday, January 3, 2011
Sqlite in Qt
To connect to the Sqlite database in Qt
add "#include "
add "QSqlDatabase db=QSqlDatabase::addDatabase("QSQLITE")" in the code body
enter "qmake -project"
add "QT += sql" in the xxx.pro file
enter "qmake"
enter "make"
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment