1/* -*- C++ -*-
2 This file is part of ThreadWeaver.
3
4 SPDX-FileCopyrightText: 2005-2014 Mirko Boehm <mirko@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9//@@snippet_begin(sample-helloworld)
10#include <ThreadWeaver/ThreadWeaver>
11
12#include <QCoreApplication>
13#include <QDebug>
14
15int main(int argc, char **argv)
16{
17 QCoreApplication app(argc, argv);
18
19 using namespace ThreadWeaver;
20 stream() << make_job(t: []() {
21 qDebug() << "Hello World!";
22 });
23}
24//@@snippet_end
25

source code of threadweaver/examples/HelloWorld/HelloWorld.cpp