dataservice/dataservice.cpp
2018-08-31 18:20:47 +02:00

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();
}