21 lines
325 B
C++
21 lines
325 B
C++
#include "dataservice.h"
|
|
|
|
|
|
DataService::DataService(QObject *parent):
|
|
QObject(parent)
|
|
{}
|
|
|
|
|
|
void DataService::doWork( ) {
|
|
QString result;
|
|
size_t count = 0;
|
|
for (size_t i = 1; i < 100000000; ++i){
|
|
count++;
|
|
}
|
|
|
|
/* ... here is the expensive or blocking operation ... */
|
|
emit resultReady();
|
|
}
|
|
|
|
|