I tried to compile my application for qt 5.12 and i get the error from title
Qt Code:
  1. QSqlDatabasePrivate::database: requested database does not belong to the calling thread.
To copy to clipboard, switch view to plain text mode 
The thing is that my application was already creating a new connection in every thread that uses database,
and i cloned default connection to a new one for the calling thread, like this:
Qt Code:
  1. QSqlDatabase db = QSqlDatabase::cloneDatabase(QSqlDatabase::database(), name);
To copy to clipboard, switch view to plain text mode 

With this new restriction I cant clone database from another thread. How am i supposed to do it now