Details
-
Suggestion
-
Resolution: Invalid
-
Not Evaluated
-
None
-
4.7.0
-
None
-
Window 7 64bit with Visual studio 2010.
Description
In Qt reference documentation,there was a topic about QtConcurrent::run 's Additional API Features
I've tried to use QtConcurrent::run with members functions,
however,when i compile the example below,i get the compiler error.It seems that there's no matching function for call QtConcurrent::run().
// call 'QStringList QString::split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const' in a separate thread
QString string ="win7,linux";
QFuture<QStringList> future = QtConcurrent::run(string, &QString::split, QString(", "), QString::KeepEmptyParts, Qt::CaseSensitive);
QStringList result = future.result();
Please give me some suggestions,
Thanks in advance.
Attachments
Issue Links
- relates to
-
QTBUG-13016 Problem when using QtConcurrent::run with members functions.__NEW__Please not close this without clarify it.
-
- Closed
-