ComboBox qml with SQLite list
Unsolved
QML and Qt Quick
-
Hello, do you know how can I have the comboBox list populated with the "description" column of my SQLite table using JS query:
function combobox() { var db = dbGetHandle() db.transaction(function (tx) { var results = tx.executeSql( 'SELECT description FROM part_log order by description asc') for (var i = 0; i < results.rows.length; i++) { listModel.append({ id: results.rows.item(i).rowid, checked: " ", description:results.rows.item(i).description }) } }) }
thanks a lot for your help