preliminary database update query
This commit is contained in:
parent
ca336cef7b
commit
9ba3f447a3
1 changed files with 7 additions and 0 deletions
|
@ -51,6 +51,13 @@ static void createVideoTable()
|
|||
VideoSqlModel::VideoSqlModel(QObject *parent) : QSqlTableModel(parent) {
|
||||
qDebug() << "creating video table";
|
||||
createVideoTable();
|
||||
|
||||
QSqlQuery query("PRAGMA table_info(videos)");
|
||||
while (query.next()) {
|
||||
QString title = query.value(1).toString();
|
||||
qDebug() << title;
|
||||
}
|
||||
|
||||
setTable(videosTableName);
|
||||
setEditStrategy(QSqlTableModel::OnManualSubmit);
|
||||
// make sure to call select else the model won't fill
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue