QSqlError("", "Unable to fetch row", "No query")
时间: 2023-09-17 18:10:48 浏览: 326
QT操作SQLite数据库示例
This error message indicates that there was an attempt to fetch a row from a query result, but there was no query executed before this operation.
To resolve this error, make sure that a query is executed before attempting to fetch rows from the result. Check the code to ensure that the query is correctly constructed and executed. Additionally, verify that the database connection is established and remains active during the query execution and result fetching.
阅读全文