diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2024-04-01 19:21:41 +0200 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2024-04-25 11:24:01 +0200 |
commit | e30e8d937190a0faad92a46b2f31cfdaae7ea7d1 (patch) | |
tree | ebfb924c1087e1e8ada5708c04b2dc474b6fb0dd /doc | |
parent | d3090b09550e2fdfd96787a64274268d4badf70d (diff) |
Mention QSqlDatabase::moveToThread() in the threads documentation
Now that a QSqlDatabase instance (or better: the underlying sql driver
instance) can be moved to another thread, we should mention it here also.
Change-Id: I7400395dc54dc9569ba40920cc585314753c0c08
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/frameworks-technologies/threads.qdoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/frameworks-technologies/threads.qdoc b/doc/src/frameworks-technologies/threads.qdoc index ddaccc270..55ebdd3b5 100644 --- a/doc/src/frameworks-technologies/threads.qdoc +++ b/doc/src/frameworks-technologies/threads.qdoc @@ -729,9 +729,9 @@ \section1 Threads and the SQL Module - A connection can only be used from within the thread that created it. - Moving connections between threads or creating queries from a different - thread is not supported. + A database connection must only be used from within the thread that + created it. Moving a connection into another thread can be done + with QSqlDatabase::moveToThread(). In addition, the third party libraries used by the QSqlDrivers can impose further restrictions on using the SQL Module in a multithreaded program. |