2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2012 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Stephen Kelly <stephen.kelly@kdab.com>
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2012-07-18 15:35:52 +00:00
|
|
|
|
2012-10-29 14:46:26 +00:00
|
|
|
#include <QtConcurrent>
|
|
|
|
#include <QtConcurrent/QtConcurrent>
|
|
|
|
#include <QtConcurrent/QtConcurrentRun>
|
|
|
|
#include <QtConcurrentRun>
|
2012-07-18 15:35:52 +00:00
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
2012-10-29 14:46:26 +00:00
|
|
|
QByteArray bytearray = "hello world";
|
2020-07-14 08:38:51 +00:00
|
|
|
auto result = QtConcurrent::run(&QByteArray::split, bytearray, ',');
|
|
|
|
Q_UNUSED(result);
|
2012-07-18 15:35:52 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|