God damn, the line
qDebug() << query.lastError().text(); // debug
qDebug() << query.lastError().text(); // debug
To copy to clipboard, switch view to plain text mode
returns
warning: "No database selected QMYSQL: Unable to execute query"
warning: "No database selected QMYSQL: Unable to execute query"
To copy to clipboard, switch view to plain text mode
. Jacek, thanks for hints, but clear this up for me please. How is it possible that in the same object and in other method, one time the database is active and the second time, like in this problem, it goes offline. Is there any timeout setting for MySQL database???
Bookmarks