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 <axel.spoerl@qt.io>
This commit is contained in:
parent
4832f61212
commit
60841478d3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user