According to QUIP-18 [1], all tests file should be LicenseRef-Qt-Commercial OR GPL-3.0-only [1]: https://contribute.qt-project.org/quips/18 Task-number: QTBUG-121787 Change-Id: I9657df5d660820e56c96d511ea49d321c54682e8 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> (cherry picked from commit ff1039c217fb1ae03b701557a5a50c2112555991)
17 lines
523 B
C++
17 lines
523 B
C++
// 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
|
|
|
|
#include <QtConcurrent>
|
|
#include <QtConcurrent/QtConcurrent>
|
|
#include <QtConcurrent/QtConcurrentRun>
|
|
#include <QtConcurrentRun>
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
QByteArray bytearray = "hello world";
|
|
auto result = QtConcurrent::run(&QByteArray::split, bytearray, ',');
|
|
Q_UNUSED(result);
|
|
|
|
return 0;
|
|
}
|