vcp
13th January 2010, 18:18
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:
QString string = "red,blue,green";
QFuture<QStringList> future = QtConcurrent::run(string, &QString::split, QString(", "), QString::KeepEmptyParts, Qt::CaseSensitive);
QStringList result = future.result();
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? :confused:
Thanks in advance.
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:
QString string = "red,blue,green";
QFuture<QStringList> future = QtConcurrent::run(string, &QString::split, QString(", "), QString::KeepEmptyParts, Qt::CaseSensitive);
QStringList result = future.result();
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? :confused:
Thanks in advance.