summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDheerendra Purohit <[email protected]>2025-06-06 12:43:37 +0530
committerAxel Spoerl <[email protected]>2025-06-13 08:27:35 +0000
commit60841478d3a5de10f279c77f3c722d666c51656a (patch)
treecc50fff7470a3fd5935a91ee6e5e8835098dabca
parent4832f61212b6536afeb0079918aa8eb7bb51eee4 (diff)
Doc: Fix QtConcurrent::run member function parameter order documentation
Updated the description to match Qt 6 behavior, clarifying that the instance argument now follows the member function pointer. Fixes: QTBUG-113401 Pick-to: 6.10 6.9 6.8 Change-Id: I6cb9c63718790eda153bc5202ed4eb1d23f032bc Reviewed-by: Axel Spoerl <[email protected]>
-rw-r--r--src/concurrent/qtconcurrentrun.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/concurrent/qtconcurrentrun.cpp b/src/concurrent/qtconcurrentrun.cpp
index 3ea1692c270..513699cdc5d 100644
--- a/src/concurrent/qtconcurrentrun.cpp
+++ b/src/concurrent/qtconcurrentrun.cpp
@@ -97,10 +97,11 @@
\section3 Using Member Functions
- QtConcurrent::run() also accepts pointers to member functions. The first
- argument must be either a const reference or a pointer to an instance of
- the class. Passing by const reference is useful when calling const member
- functions; passing by pointer is useful for calling non-const member
+ QtConcurrent::run() also accepts pointers to member functions.
+ In Qt 6, the first argument must be the pointer to the member function,
+ followed by either a const reference or a pointer to an instance of the
+ class. Passing a const reference is useful when calling const member
+ functions; passing a pointer is useful for calling non-const member
functions that modify the instance.
For example, calling QByteArray::split() (a const member function) in a