From f30f18b4bdf5b3a1bf5dc27313e84484a0006a8c Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Sat, 28 May 2022 11:33:56 +0200 Subject: [PATCH] Update README on how to embed this in the project --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 2636853..0636fa8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,22 @@ Inspired by http://www.xargs.com/qml/process.html +Add to project.pro: + +``` +HEADERS += \ + ../../qml-process/process.h +``` + +Add to main.cpp + +```c++ +#include +#include "../../qml-process/process.h" + +// in main: +qmlRegisterType("Process", 1, 0, "Process"); +``` + Use in QML: ```