Hi All, Happy new year!
I've tried to use QtConcurrent::run with members functions, but I have not had success.
Then I resolved to quiz this example of documentation:
QFuture<QStringList> future
= QtConcurrent
::run(string,
&QString
::split,
QString(", "),
QString::KeepEmptyParts, Qt
::CaseSensitive);
QString string = "red,blue,green";
QFuture<QStringList> future = QtConcurrent::run(string, &QString::split, QString(", "), QString::KeepEmptyParts, Qt::CaseSensitive);
QStringList result = future.result();
To copy to clipboard, switch view to plain text mode
But the following error of compilation occurs
qreport.cpp: In constructor 'qreport::qreport()':
qreport.cpp:57: error: no matching function for call to 'run(QString&, <unresolved overloaded function type>, QString, QString::SplitBehavior, Qt::CaseSenitive);
What is happening? 
Thanks in advance.
Bookmarks