God damn, the line
Qt Code:
  1. qDebug() << query.lastError().text(); // debug
To copy to clipboard, switch view to plain text mode 
returns
Qt Code:
  1. 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???